{% extends "base_view.html" %} {% load fullurl %} {% load widget_tweaks %} {% block title %} meliza-lab : bird colony {% endblock %} {% block content %} This web application allows you to access the animal database. Here are some things you can do:
Note: Use the bird's page to add banding information, samples, and events.
You can also query the database using the HTTP API. Specify query parameters using the URL.
{% url 'birds:animals_api' %} retrieves a list of animals. Supported query parameters are uuid, color, band, species, sex, plumage, available, reserved_by. Most text-based query parameters are case-insensitive and will do partial matches. {% url 'birds:animals_api' %}my-uuid/ retrieves the record for a single animal by by uuid. This includes some additional information not returned by the list query.
{% url 'birds:events_api' %} retrieves a list of events. Supported query parameters: animal (uuid), color, band, species, location, entered_by, description.
{% url 'birds:pedigree_api' %} retrieves a list of birds and parents with sex and heritable traits (e.g. plumage). By default, this only includes birds that are living (leaves) or that have children (stems). Set restrict=False to include all animals.
{% url 'birds:api_info' %} retrieves information about the API.
curl {% fullurl 'birds:animals_api' %}?species=zebf&available=True will retrieve all available (unreserved) zebra finches.
curl {% fullurl 'birds:events_api' %}?animal=bd0dcfc1 will retrieve all the events for the bird whose uuid begins with bd0dcfc1.