1● Swagger is an open-source software framework backed
2by a large ecosystem of tools that helps developers design,
3build, document, and consume RESTful Web services.
4● Swagger allows you to describe the structure of your APIs
5so that machines can read them.
6● The ability of APIs to describe their own structure is the
7root of all awesomeness in Swagger
8● similar to xml schema but for Json
1It is tool which give user interface to Restful Api's.
2And we can speed the development process
1The Swagger UI is an open source project to visually render documentation for
2an API defined with the OpenAPI (Swagger) Specification
1docker pull swaggerapi/swagger-editor
2docker run -d -p 80:8080 swaggerapi/swagger-editor
3
1$ curl -I "https://petstore.swagger.io/v2/swagger.json"HTTP/1.1 200 OKDate: Sat, 31 Jan 2015 23:05:44 GMTAccess-Control-Allow-Origin: *Access-Control-Allow-Methods: GET, POST, DELETE, PUT, PATCH, OPTIONSAccess-Control-Allow-Headers: Content-Type, api_key, AuthorizationContent-Type: application/jsonContent-Length: 0