Pets
Pets endpoint for Pet Adoption
Some of these are authenticated endpoints. You can visit authentication to get an access token.
These endpoints allow you to create, read, update and delete pets.
These endpoints support pagination and sorting. Read more about these features here.
The Pet model
Prop | Type | Default |
---|---|---|
id | string | - |
name | string | - |
species | string | - |
breed | string | - |
age | number | - |
gender | string | - |
size | string | - |
color | string | - |
description | string | - |
adoptionStatus | string | Available |
location | string | - |
image | object | - |
created | Date | - |
updated | Date | - |
owner | Profile | - |
All pets
Retrieve all pets.
Single pet
Retrieve a single pet by its id.
Create pet
Create a new pet.
Please note that the image.url
property must be a fully formed URL that links to a live and publicly accessible image. The API will check the provided URL and if it cannot be accessed publicly you will receive a 400 Bad Request
error response.
Update pet
Update a pet by its id. This endpoint returns the updated pet.
Please note that the image.url
property must be a fully formed URL that links to a live and publicly accessible image. The API will check the provided URL and if it cannot be accessed publicly you will receive a 400 Bad Request
error response.
Delete pet
Delete a pet by its id.
Returns an empty 204 No Content
response on success.