{% extends "default.html" %} {% block body %}
{% if collection %} api/{{collection}} {% else %} api/ {% endif %}
{% if current_user.is_authenticated %} Logout {% else %} Login {% endif %}

Crumby API

A REST API that allows queries against the crumby database.

Collections

{% if collection %}

{{collection | title}} Endpoints

{% for query in queries %} {% endfor %}

Query String Parameters

Date Range

Queries that require a date range will default to the last 30 days. Provide days or from and to for a custom date range.

days

int: number of consecutive days to retrieve before today.

Example: {{ config.DOMAIN }}/api/{{collection}}/locations?days=60

from / to

str in form YYY-MM-DD: start and end date of date range.

Example: {{ config.DOMAIN }}/api/{{collection}}/locations?from=2016-09-01&to=2017-02-20

{% endif %}
{% endblock %}