Pet Store Demo
  1. Sample APIs
Pet Store Demo
  • 🐶 Walk through Apidog
  • Sample APIs
    • Deletes a pet
      DELETE
  • Find pet by ID
    GET
  • Finds Pets by status
    GET
  • Add a new pet to the store
    POST
  • Update an existing pet
    PUT
  • Pet User ID
    GET
  • API-Token
    GET
  • Apidog Echo
    GET
  • sayHello
    POST
  • New Request
    GET
  • Weather
    GET
  1. Sample APIs

Deletes a pet

DELETE
/pet/{petId}
pet

Request

Path Params
petId
string 
required
Pet id to delete
Header Params
api_key
string 
optional

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://dev.your-api-server.com/pet/' \
--header 'api_key;'

Responses

🟢200OK
application/json
Body
code
integer 
required
>= 0<= 0
Example
{
  "code": 0
}
Previous
🐶 Walk through Apidog
Next
Find pet by ID
Built with