Diets
API Endpoint and Description
Section titled “API Endpoint and Description”GET {baseUrl}/api/v1/diets`Returns all dinosaur diets that exist within the API.
Parameters
Section titled “Parameters”No parameters are required for this endpoint.
Response Structure
Section titled “Response Structure”[ { "diet": "carnivore", "count": 320 }, { "diet": "herbivore", "count": 650 }, { "diet": "omnivore", "count": 150 }, { "diet": "piscivore", "count": 68 }]