animals
#
Animals Router app
create_animal(animal, session=Depends(get_async_session))
async
#
Create a new animal in the database
Source code in zoo/api/animals.py
delete_animal(animal_id, session=Depends(get_async_session))
async
#
Delete an animal from the database
Source code in zoo/api/animals.py
get_animal(animal_id, session=Depends(get_async_session))
async
#
Get an animal from the database
Source code in zoo/api/animals.py
get_animals(offset=0, limit=Query(default=100, le=100), session=Depends(get_async_session))
async
#
Get animals from the database
Source code in zoo/api/animals.py
update_animal(animal_id, animal, session=Depends(get_async_session))
async
#
Update an animal in the database