Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 5 Current »

This set of resources is used to expose the animal photos.

 
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
}
  • No labels