這份文件宣告
openapi: 3.2.0,plugin 只保證 3.0 / 3.1。目前以 3.1 規則渲染:3.2 新增的 query method 以中性色標記,其他 3.2 專屬欄位會略過。OPENAPI 3.2.0
Swagger Petstore - OpenAPI 3.2v1.0.13
This is a sample Pet Store Server based on the OpenAPI 3.2 specification. You can find out more about Swagger at https://swagger.io. In the third iteration of the pet store, we've switched to the design first approach! You can now help us improve the API whether it's by making changes to the definition itself or to the code. That way, with time, we can improve the API in general, and expose some of the new features in OAS 3.2.
Some useful links:
API 結構3GET8POST6PUT2DEL3QUERY2
Tag說明數量Method 分布
petEverything about your Pets9GET3POST3PUT1DEL1QUERY1storeAccess to Petstore orders and inventory5GET2POST1DEL1QUERY1userOperations about user management and authentication7GET3POST2PUT1DEL1伺服器2
https://petstore32.swagger.io/api/v3Production server (OAS 3.2)https://petstore-staging.swagger.io/api/v3Staging server驗證方式2
petstore_authoauth2OAuth2 implicit · scopes write:petsread:petsapi_keyapiKey放在 header 的 api_key