- 🐶 Walk through Apidog
- Sample APIs
- Auth
- User
Find pet by ID
GET
https://api.cardtonic.com/v1/pet/{petId}
pet
Request
Path Params
petId
string
required
Example:
1
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 GET 'https://api.cardtonic.com/v1/pet/1'
Responses
🟢200OK
application/json
Body
code
integer
required
>= 0<= 0
data
object (Pet)
required
id
integer <int64>
required
>= 1
category
object (Category)
required
name
string
required
Example:
doggie
photoUrls
array[string]
required
tags
array[object (Tag) {2}]
required
status
enum<string>
required
Allowed values:
availablependingsold
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"
}
}
🟠404Record not found
🟠400Invalid input
Modified at 2024-11-16 21:04:30