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

Deletes a pet

DELETE
/pet/{petId}

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
Path Params

Header Params

Responses

🟢200OK
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE '/pet/?token=<api-key>' \
--header 'api_key;' \
--header 'X-API-Key: <api-key>'
Response Response Example
{
    "code": 0
}
Modified at 2025-01-03 03:24:01
Previous
Update an existing pet
Next
Find pet by ID
Built with