Posts

Showing posts with the label Swagger with asp.net core

ASP.NET Core Web API configuration with Swagger

Note: some times if any exception occurs in controller (failed to load specification) then need to check api with Postman because swagger can not show the specific exception details. What is Swagger? Swagger is an open source, human and machine readable API framework to design, build, and document.APIs. What this means is that Swagger defines an API’s RESTful contract, allowing all the API’s stakeholders,be it your development team, or your end consumers, to understand what the API does and interact with its various resources, without having to integrate it into their own application. Swagger is a language-agnostic specification for describing REST APIs. It allows both computers and humans to understand the capabilities of a service without any direct access to the implementation (source code, network access, documentation). One goal is to minimize the amount of work needed to connect disassociated services. Another goal is to reduce the amount of time needed to accurately ...