{% 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:
add a band for an existing bird
Note: add samples and events for birds from the bird's page.
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
, 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
.
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
.