3.5.3.Swagger/OAI Specifications, Part 1 of 3
以下範例參考自https://github.com/acloudfan/REST-API-course-swagger (branch: rootdocument)
Swagger 2.0 Part 1包含: 1.Metedata
info: Version, Title, description, contact, license
2.Root Document
The part of URL between the host:port and resource is referred to the specification as the basePath
host, basePath, schemes[string], consumes[string], produces[string]
3.Tags
To make the specification searchable and filterable, it is suggested to use tags
name, description
4.External Documentation
The specification may linked with detailed document on a website by using the element externalDocs
Part 2
definitions
parameters
securityDefinition
Part 3
Path
Previous3.5.2.Swagger/OAI Specifications WalkthroughNext3.5.4.Swagger/OAI Specifications, Part 2 of 3
Last updated