Open API is a specification for describing, producing, consuming, and visualizing RESTful web services. Years ago Open API was called Swagger. Maybe Swagger started getting popular and renamed part of it’s technologies to Open API.
Swagger is a tool that helps you document your API’s.
You would add different different stuff to your methods to document your API’s.
Here’s an example
1 | /// <summary> |
You’ll notice a mix of comments (that start with ///) and Annotations. The compiler will call a function to read through the code and generate documentation. In this case the documentation that is generated will give you a summary and a description of the ID parameter. There is also comments that describe what is returned.
More information about Swagger can be found here:
- Swashbuckle There are articles in this section that describe different aspects of Swashbuckle.