Swagger API Framework THE WORLDS MOST POPULAR API

  • Slides: 9
Download presentation
Swagger API Framework “THE WORLD'S MOST POPULAR API FRAMEWORK”

Swagger API Framework “THE WORLD'S MOST POPULAR API FRAMEWORK”

Swagger API Framework Introduction Describe and document RESTful APIs Since 2010, founding companies Google,

Swagger API Framework Introduction Describe and document RESTful APIs Since 2010, founding companies Google, IBM, Microsoft License: Apache License, Version 2. 0

Swagger API Framework Introduction Service Description Language: YAML, JSON Open. API Specification http: //swagger.

Swagger API Framework Introduction Service Description Language: YAML, JSON Open. API Specification http: //swagger. io/specification/ Online Editor: http: //editor. swagger. io/

Swagger API Framework Introduction Swagger UI Visualize and interact with API http: //swagger. io/swagger-ui/

Swagger API Framework Introduction Swagger UI Visualize and interact with API http: //swagger. io/swagger-ui/

Swagger API Framework ASP. NET Web. Api integration Library for ASP. NET Web. Api:

Swagger API Framework ASP. NET Web. Api integration Library for ASP. NET Web. Api: Swashbuckle https: //www. nuget. org/packages/Swashbuckle Api Spec generation / Publish in Swagger UI -> @Runtime

Swagger API Framework ASP. NET Web. Api integration Description from Xml-Doc in code Swagger.

Swagger API Framework ASP. NET Web. Api integration Description from Xml-Doc in code Swagger. Config. cs: Include. Xml. Comments(…); Swagger Attributes: [Swagger. Operation("Get. Temperatures")] [Swagger. Response(Http. Status. Code. Not. Found, "Server. Id not found")]

Swagger API Framework ASP. NET Web. Api integration Redirect to Swagger by config. Routes

Swagger API Framework ASP. NET Web. Api integration Redirect to Swagger by config. Routes in Web. Api. Config Basic Authentication Swagger. Config. cs: Basic. Auth("basic"); Operation. Filter<Assign. Security. Property>();

Swagger API Framework ASP. NET Web. Api integration Manipulate Swagger UI by JS injection

Swagger API Framework ASP. NET Web. Api integration Manipulate Swagger UI by JS injection Swagger. Config. cs: Inject. Java. Script(…) var bearer. Auth = new Swagger. Client. Api. Key. Authorization("Authorization", "Bearer " + data. access. Token, "header"); window. swagger. Ui. api. client. Authorizations. add("key", bearer. Auth);

Swagger API Framework Code Generator Server-Code generator Client-Code generator > 10 Languages https: //github.

Swagger API Framework Code Generator Server-Code generator Client-Code generator > 10 Languages https: //github. com/swagger-api/swagger-codegen