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

Lists

all the living birds

all the available birds

all the birds

all events

sample types

Summary Reports

for this month

for last month

Data Entry Forms

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, 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.

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 %}