KFZQ Wiki
服官网
  • 首页
  • Getting Started
    • Quickstart
    • Publish your docs
  • Basics
    • Editor
    • Markdown
    • Images & media
    • Interactive blocks
    • OpenAPI
    • Integrations
  • 风带来故事的种子
    • 开服列传
      • AliceMana / 明石
      • 初春
      • 纯贰
      • crystal / 水晶鱼
      • Flyme
      • Gr3ySky
      • HyousakaMioyuki / 甜甜圈
      • Ji_momo / 寂陌
      • 机器猫
      • LimieyMeng
      • Max
      • meibisijiang / 梅比斯酱
      • norch / 寒冰
      • pockyqiqi
      • putr
      • qwp_xjj
      • Rabbit_Laffey
      • SexyBaiChi / 白吃
      • sympathy_fish
      • summer_end
      • sfq
      • 三叶
      • system / server_system
      • xfq
      • 晓骸
      • yuzo_guozhi
      • Zn_Wan / 樟脑丸
    • 开服简史
  • 常见问题帮助
    • 如何使用 LittleSkin 更换皮肤
由 GitBook 提供支持
在本页

这有帮助吗?

  1. Basics

OpenAPI

上一页Interactive blocks下一页Integrations

这有帮助吗?

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 , so you can test your APIs directly from your docs.

Scalar
  • OpenAPI block
  • POSTAdd a new pet to the store.

Add a new pet to the store.

post

Add a new pet to the store.

授权
请求体
idinteger · int64可选Example: 10
namestring必填Example: doggie
photoUrlsstring[]必填
statusstring · enum可选

pet status in the store

可能的值:
响应
200
Successful operation
400
Invalid input
422
Validation exception
default
Unexpected error
post
POST /api/v3/pet HTTP/1.1
Host: 
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 133

{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "text"
  ],
  "tags": [
    {
      "id": 1,
      "name": "text"
    }
  ],
  "status": "available"
}
{
  "id": 10,
  "name": "doggie",
  "category": {
    "id": 1,
    "name": "Dogs"
  },
  "photoUrls": [
    "text"
  ],
  "tags": [
    {
      "id": 1,
      "name": "text"
    }
  ],
  "status": "available"
}