autogenerate-api-client-with-nswag
autogenerate-api-client-with-nswag copied to clipboard
Example showing how to automatically generate netstandard API clients for an aspnetcore web api using NSwag and Swagger
Pulled the latest example from 25-10-2020 and it failed to build. It appears that nswag is not adding ClientBase to ValuesClient in Client.g.cs. Updated "codeGenerators:openApiToCSharpClient:clientBaseClass" to ClientBase in nswag.json to...
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.2. Release notes Sourced from Newtonsoft.Json's releases. 13.0.2 New feature - Add support for DateOnly and TimeOnly New feature - Add UnixDateTimeConverter.AllowPreEpoch property New feature...
Line 2: ``` - [C#](https://blog.sanderaernouts.com/posts/http://localhost:4000/autogenerate-csharp-api-client-with-nswag) ``` Should be: ``` - [C#](https://blog.sanderaernouts.com/posts/autogenerate-csharp-api-client-with-nswag) ```
I would be interested to see the code you made to actually use the C# Client. Your "retrieveAuthorizationToken" func,, in particular... while i do have a working implementation that caches...
**Description**: I am currently working on an Angular project where I need to generate TypeScript interfaces from C# models using NSwag. I have successfully set up NSwag in my project,...