get_pet_by_id
Returns a user based on a single ID, if the user does not have access to the pet
Method
- JSON-RPC method name:
get_pet_by_id - JSON-RPC version:
2.0
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | integer | yes | ID of pet to fetch |
Parameter schema
{
"id": {
"description": "ID of pet to fetch",
"required": true,
"schema": {
"type": "integer"
}
}
}
Result
- Name:
pet - Description: pet response
- Type:
allOf
Result schema
{
"allOf": [
{
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"tag": {
"type": "string"
}
}
},
{
"required": [
"id"
],
"properties": {
"id": {
"type": "integer"
}
}
}
]
}
Positional parameters
Parameter order:
id
Errors
This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.
TODO: Document method-specific error codes and conditions.