{% extends "base_view.html" %} {% 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 events

sample types

Summary Reports

nest report

birds in each location

events for this month

events for last month

Data Entry Forms

enter nest check for today

add new bird

add a band for an existing bird

add clutch of birds

Note: add samples and events for birds from the bird's page.

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). Use restrict=True to limit this to birds that are living (leaves) or that have children (stems).

Examples

curl http://my.domain{% url 'birds:animals_api' %}?species=zebf&available=True will retrieve all available (unreserved) zebra finches.

curl http://my.domain{% url 'birds:events_api' %}?animal=bd0dcfc1 will retrieve all the events for the bird whose uuid begins with bd0dcfc1.

{% endblock %}