application/json
POST
/pet
cURL (application/json)
curl \
--request POST 'http://malicious-domain.tld/v2/pet' \
--header "Content-Type: application/json" \
--data '{"id":1,"name":"fluffy","tags":[{"id":1,"name":"cat"}],"status":"available","category":{"id":1,"name":"cat"},"photoUrls":["http://example.com/path/to/cat/1.jpg","http://example.com/path/to/cat/2.jpg"]}'
curl \
--request POST 'http://malicious-domain.tld/v2/pet' \
--header "Content-Type: application/xml"
Request examples
An example of cat
An example of cat, using `value` property
{
"id": 1,
"name": "fluffy",
"tags": [
{
"id": 1,
"name": "cat"
}
],
"status": "available",
"category": {
"id": 1,
"name": "cat"
},
"photoUrls": [
"http://example.com/path/to/cat/1.jpg",
"http://example.com/path/to/cat/2.jpg"
]
}
An example of cat, using `value` property, which value is an array
[
{
"id": 1,
"name": "fluffy",
"tags": [
{
"id": 1,
"name": "cat"
}
],
"status": "available",
"category": {
"id": 1,
"name": "cat"
},
"photoUrls": [
"http://example.com/path/to/cat/1.jpg",
"http://example.com/path/to/cat/2.jpg"
]
}
]
Request examples
An example of cat
An example of cat, using `value` property
<xml></xml>