The /foods endpoint focuses on the types of pet food that is recognized by and can be recorded on PetHub.com for a pet's nutritional needs. Use this to pull the types of foods available and details about a specific food ID (fid).
Digging into /Foods
The /foods endpoint offers the following:
| /foods | Description |
|---|---|
| / |
|
| /{fid} |
|
| /{fid}/use | GET - get the list of pets using food {fid} Example: https://pethub.io/v1/foods/{fid}/use?state=wa&city=seattle |
| (Actively seeking feedback re: additional endpoints & use cases) | |
The Swagger 2.0 / OAS YAML rendering is below including the data structures necessary for POST or returned by GET.