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.

post

Add a new pet to the store.

必需范围
此端点需要以下范围:
  • : modify pets in your account
  • : read your pets
授权
OAuth2implicit必填
Authorization URL:
请求体
idinteger · int64可选Example: 10
namestring必填Example: doggie
photoUrlsstring[]必填
statusstring · enum可选

pet status in the store

可能的值:
响应
200

Successful operation

post
/pet

这有帮助吗?