Describes methods to work with Person objects
Json-serialized list of Persons objects
Returns Person object by specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Person |
Json-serialized Person object
Adds new Person.
Json-serialized Person object
Json-serialized Person object with assigned id
Updates person with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Person |
Json-serialized Person object to be updated.
Updated Json-serialized Person object.
Deletes person with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Person |
Describes methods to work with Pet objects
Returns list of all pets in the database.
Json-serialized list of Pets objects
Returns Pet object by specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Pet |
Json-serialized Pet object
Get all pets for the person with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Person |
Json-serialized list of pets for the specified person
Adds new Pet to the Person with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the person |
Json-serialized Pet object
Json-serialized Pet object with assigned id
Updates pet with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Pet |
Json-serialized Pet object to be updated.
Updated Json-serialized Pet object.
Deletes pet with specified id.
Parameter | Type | Required | Description |
---|---|---|---|
id | Integer | True | Id of the Pet |