Overview
The Animals API provides access to the zoo’s animal collection data, including species information, habitats, and images.List All Animals
Returns a complete list of all animals in the zoo with their basic information.
Response Fields
Indicates if the request was successful
Success message describing the operation
Array of animal objects
Unique identifier for the animal
Name of the animal
Gender of the animal (e.g., “Male”, “Female”)
Species name of the animal
Category/classification of the animal (e.g., “Mammal”, “Bird”)
Name of the habitat where the animal resides
URL path to the animal’s image (original size)
URL path to the animal’s medium-sized image
URL path to the animal’s large-sized image
Example Request
Example Response
Get Animal by ID
Retrieves detailed information about a specific animal by its unique identifier.
Path Parameters
The unique identifier of the animal
Response Fields
Indicates if the request was successful
Success message describing the operation
Animal object containing detailed information
Unique identifier for the animal
Name of the animal
Gender of the animal
Species name of the animal
Category/classification of the animal
Name of the habitat where the animal resides
URL path to the animal’s image (original size)
URL path to the animal’s medium-sized image
URL path to the animal’s large-sized image
Example Request
Example Response
Error Responses
Invalid Animal ID
When an invalid or non-numeric ID is provided:400 Bad Request
Animal Not Found
When the requested animal ID does not exist:404 Not Found