Pet Store
  1. User Service
Pet Store
  • User Service
    • Add steps into the doc
    • User Service
      • Overview
      • Notice
      • Login
        POST
      • Add a new pet to the store
        POST
      • Update an existing pet
        PUT
      • Deletes a pet
        DELETE
      • Find pet by ID
        GET
      • Finds Pets by status
        GET
      • discriminator with mapping
        POST
    • Order Service
      • Find order by id
      • Check
    • AI Model
      • Google AI Studio
    • Schemas
      • Sample Schemas
        • Pet
        • Category
        • Tag
  • Order Service
    • Get list
      GET
    • Add a list
      POST
    • Update list
      PUT
    • New Request
      GET
    • Schemas
      • List
  1. User Service

Finds Pets by status

GET
/pet/findByStatus

Request

Authorization
API Key
Add parameter in header
X-API-Key
Example:
X-API-Key: ********************
API Key
Add parameter in query
token
Example:
token: ********************
or
Query Params

Responses

🟢200OK
application/json
Body

🟠400Invalid status value
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/pet/findByStatus?status&token=<api-key>' \
--header 'X-API-Key: <api-key>'
Response Response Example
200 - Success example
{
    "code": 0,
    "data": [
        {
            "name": "Hello Kitty",
            "photoUrls": [
                "http://dummyimage.com/400x400"
            ],
            "id": 3,
            "category": {
                "id": 71,
                "name": "Cat"
            },
            "tags": [
                {
                    "id": 22,
                    "name": "Cat"
                }
            ],
            "status": "sold"
        },
        {
            "name": "White Dog",
            "photoUrls": [
                "http://dummyimage.com/400x400"
            ],
            "id": 3,
            "category": {
                "id": 71,
                "name": "Dog"
            },
            "tags": [
                {
                    "id": 22,
                    "name": "Dog"
                }
            ],
            "status": "sold"
        }
    ]
}
Modified at 2025-01-03 03:24:01
Previous
Find pet by ID
Next
discriminator with mapping
Built with