

Connected Services also enables you to use OpenAPI and gRPC services written by yourself or other folks on your team. Connected Services can be a variety of things – they can range from full-blown Azure Services like Key Vault or Cosmos DB that you’ll need to use in your app. Visual Studio Connected Servicesīy right-clicking on any project, you can add a Connected Service. Visual Studio Connected Services makes use of NSwag for generating strongly-typed clients from OpenAPI specification documents, and gRPC clients or servers from proto files. While this isn’t a complex set of code, it becomes redundant quickly. Serialization and deserialization code needs to be written to serialize the request and responses to and from JSON, XML, or some other form of content.


Developers create instances of the HttpClient class to initiate HTTP calls to an endpoint. NET code to call to a back-end API, the steps are relatively predictable. Consuming an HTTP API isn’t complex, but it does require a good amount of boilerplate, and often redundant, code.

We’re continuing our series on building HTTP APIs with.
