跳到主要內容

Swagger Petstore - OpenAPI 3.2

openapi-renderer 2026/10/07
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.
總覽
OAS 3.2.0
這份文件宣告 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

21 支 operation3 個 tag9 個 schema來源:testing/openapi/petstore.openapi.json

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

伺服器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:pets
api_keyapiKey放在 header 的 api_key