What is Swagger Spec -
Swagger allows us to describe the structure of an APIs so that machines can
read them. The Swagger specification defines a set of files required to
describe such an API. These files can then be used by the Swagger-UI project to
display the API . The OpenAPI Specification, originally known as the Swagger
Specification, is a specification for machine-readable interface files for
describing, producing, consuming, and visualizing RESTful web services. Swagger definitions can be
written in JSON or YAML format.
Basic features of Swagger spec-
- It provides Nice fancing UI generic
operation. When creating an APIs, Swagger tool may be used to automatically generate an Open API document
based on the code itself.
- It reduces the need for human generated client code.
- Swagger
open-source tooling may be used to interact directly with the API through
the Swagger UI.
- It's human readable and machine readable.
No comments:
Post a Comment
Please let me know if you have any doubts.