security-export-demo
  1. Sample APIs
security-export-demo
  • secret
    • Requires auth (should inherit)
      GET
    • Requires auth (explicit)
      GET
  • public
    • No auth (should inherit)
      GET
    • No auth (explicit)
      GET
  • Sample APIs
    • 1-引用响应组件+引用跨模块组件
      GET
    • 2-未引用响应组件
      POST
    • 3-引用本模块组件
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET
  1. Sample APIs

2-未引用响应组件

POST
/pet

Request

Body Params application/x-www-form-urlencoded

Responses

🟢201OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://dev.your-api-server.com/pet' \
--data-urlencode 'name=Hello Kitty' \
--data-urlencode 'status=sold'
Response Response Example
{
    "code": 0,
    "data": {
        "name": "Hello Kity",
        "photoUrls": [
            "http://dummyimage.com/400x400"
        ],
        "id": 3,
        "category": {
            "id": 71,
            "name": "Cat"
        },
        "tags": [
            {
                "id": 22,
                "name": "Cat"
            }
        ],
        "status": "sold"
    }
}
Previous
1-引用响应组件+引用跨模块组件
Next
3-引用本模块组件
Built with