/
Animal Photos /api/animalPhotos
Animal Photos /api/animalPhotos
This set of resources is used to expose the animal photos.
To make sure photos are web safe (smaller size so that people with slow internet connections can still have fast download times), if a photo is greater than 614KB we resize the image so its longest edge is 600 pixels wide and is proportionately resized. So when a photos is landscape, the width will change, for portrait the height will change all proportionately.
Table 7 Animal photo resources
URI Description | Method | Relative URI |
Get by ID | GET | /api/v{version}/animalPhotos/{id} |
Get by animal ID | GET | /api/v{version}/animalPhotos?animalId={id} |
Get by animal ID and default | GET | /api/v{version}/animalPhotos?animalId={id}&isDefault=true |
A sample JSON return of an animal photo
{ "Id": 1, "Animal": "/api/v1/animals/1", "Photo": "/photos/animal/e2dket32dsdy.jpg", "IsDefault": true }
, multiple selections available,
Related content
Animal Colours /api/animalColours
Animal Colours /api/animalColours
More like this
Animal Statuses /api/animalStatuses
Animal Statuses /api/animalStatuses
More like this
Animals /api/animals
Animals /api/animals
More like this
Animals
Animals
More like this
Code Samples
Code Samples
More like this
Adoptions /api/adoptions
Adoptions /api/adoptions
More like this