Sunday, February 3, 2019

OpenAPI (Swagger) Connected Service - generate C# client code for OpenAPI (Swagger) API

OpenAPI (Swagger) Connected Service is a Visual Studio 2017 extension to generate C# HttpClient code for OpenAPI (formerly Swagger API) web service with NSwag

Getting Started

Install from Tools -> Extensions and Updates menu inside Visual Studio 2017 or download as VSIX package from Visual Studio Marketplace

Adding OpenAPI (Swagger) Connected Service from Visual Studio Marketplace

HowTos

Troubleshooting

Generated code compilation errors

If your project target framework is net461 you might need to add the following packages via NuGet Package Manager:

Can't open .nswag file in NSwagStudio

  • If generated code corrupted, try to open .nswag file in NSwagStudio (Windows GUI for editing .*nswag files).
  • If it doesn't open, try to create new .nswag file in NSwagStudio for the same API service link and check the differences.
  • If you found bug, please report it here. Thank you in advance!

Roadmap

See the changelog for the further development plans and version history.

Feedback

Please feel free to request a feature or report a bug.

OpenAPI (Swagger) Connected Service - generate C# client code for OpenAPI (Swagger) API Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team