HHW
  1. Sample APIs
HHW
  • Start your Apidog journey
  • Sample APIs
    • Find pet by ID
      GET
    • Add a new pet to the store
      POST
    • Update an existing pet
      PUT
    • Deletes a pet
      DELETE
    • Finds Pets by status
      GET
  • test
    • /plants
      GET
    • /plants
      POST
    • /plants/{id}
      DELETE
  • chenlei
    • Fruit Resource
      • List
      • Delete
      • Add
  1. Sample APIs

Add a new pet to the store

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 '/pet' \
--data-urlencode 'name=Hello Kitty' \
--data-urlencode 'status=sold'
Response Response 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"
    }
}
Modified at 2025-04-28 02:51:55
Previous
Find pet by ID
Next
Update an existing pet
Built with