Skip to content
Visual Studio extension to generate OpenAPI (Swagger) web service reference.
C# HTML CSS
Branch: master
Clone or download
Latest commit b14be18 Jun 25, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
docs Update CHANGELOG.MD Jun 13, 2019
src #31: fixes starting from VS2019 Preview v16.2.0 (#36) May 23, 2019
.gitattributes #1: Create empty solution skeleton Jan 3, 2019
.gitignore
README.MD Update README May 8, 2019

README.MD

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

Simply put, it is like Add Service Reference for WCF or Add Web Reference for WSDL, but for JSON API.

Getting Started

Install from Tools -> Extensions and Updates menu inside Visual Studio 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.

Support Development

Just consider buying me a coffee. Thank you for your support!

You can’t perform that action at this time.