{% 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:

Find an animal

Lists

all the available birds

all the living birds

all the birds

all active pairs

all pairs

all events

all locations

all users

sample types

Summary Reports

breeding report (new)

nest report (old)

birds in each location

colony summary for this month

colony summary for last month

Data Entry Forms

enter nest check for today (new form)

enter nest check for today (old form)

add new bird

create a new pairing

Note: Use the bird's page to add banding information, samples, and events.


API

You can also query the database using the HTTP API. Specify query parameters using the URL.

Entry Points

{% 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.

Examples

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.


{% endblock %}