© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
9 replies
.tree

❔ NSwag Client generation

I'm trying to generate an API client for my .NET 6 REST API that used to be a Soap service. I want to replace the generated soap client with a new REST client.

When I generate an API Client in NSwag Studio, I get only a single file with a bunch of methods that aren't named after my API calls. What is this for?

When I generate using the swagger editor online, I do receive an API file as well as multiple model classes that are named after my objects and methods.

I'm confused as to why I get these different results and which one is needed for what task.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Generate REST Client with NSwag Studio
C#CC# / help
3y ago
NSwag client causes build to fail the first time
C#CC# / help
9mo ago
How flexible is NSwag?
C#CC# / help
2y ago
❔ NSwag and API help
C#CC# / help
3y ago