Open-source HTTP API packages and tools.Creating Discoverable HTTP APIs with ASP.NET Core 5 Web API.It is also worth reading the other blog posts in the series written by Brady Gaster: Having watched the video above, I recommend reading Jon Galloway’s post Generating HTTP API clients using Visual Studio Connected Services As that post covers the introduction to using Connected Services, I won’t repeat the basics again here. Especially given that, behind the scenes, it is using NSwag to do the code generation. This feature had passed me by and watching the video got my curiosity going as to whether the build chain that I have been using for the last couple of years could be simplified. In the last half hour or so, they discuss the Connected Services functionality in Visual Studio 2019 that sets up code generation of HTTP API endpoint clients for you. Recently though, I watched the ASP.NET Community Standup with Jon Galloway and Brady Gaster. Initially I was using the NSwag Studio application to create the C# code and placing the output into my project, but then I later found I could add the code generation into build process using the NSwag MSBuild task. I have been using Rico Suter’s brilliant NSwag for some time now to generate client code for working with HTTP API endpoints. This is not one of my usual blogs, but an aide-mémoire for myself that may be of use to other people who are using the OpenApiReference tooling in their C# projects to generate C# client code for HTTP APIs from Swagger/OpenApi definitions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |