Add a new pet to the store
Request
Add the parameter Authorization
to Headers,whose value is to concatenate the Token after the Bearer. Example:Authorization: Bearer ********************
Authorize URL: https://github.com/login/oauth/authorize
Token URL: https://github.com/login/oauth/access_ token
Scopes:
read: user
offline.access
tweet.read
or
Body Params application/x-www-form-urlencoded
Request samples
curl --location --request POST 'https://mock.apidog.com/m1/545587-0-default/pet' \
--header 'ACCESS_TOKEN: ss' \
--data-urlencode 'name=Hello Kitty' \
--data-urlencode 'status=sold'
Responses
application/json {
"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 2024-05-22 05:55:10