OpenAPI
You can sync GitBook pages with an OpenAPI or Swagger file or a URL to include auto-generated API methods in your documentation.
OpenAPI block
GitBook's OpenAPI block is powered by Scalar, so you can test your APIs directly from your docs.
Add a new pet to the store.
必需范围
此端点需要以下范围:
- : modify pets in your account
- : read your pets
授权
OAuth2implicit必填
Authorization URL:
请求体
idinteger · int64可选Example:
10namestring必填Example:
doggiephotoUrlsstring[]必填
statusstring · enum可选可能的值:
pet status in the store
响应
200
Successful operation
400
Invalid input
422
Validation exception
default
Unexpected error
post
/pet这有帮助吗?