{% extends "crashstats_base.html" %} {% block page_title %}API Documentation{% endblock %} {% block product_nav_filter %} {% endblock %} {% block site_css %} {{ super() }} {% compress css %} {% endcompress %} {% endblock %} {% block site_js %} {{ super() }} {% compress js %} {% endcompress %} {% endblock %} {% block content %}

API Documentation

You current have {{ count_tokens }} active API Token{{ count_tokens|pluralize }}.

These API endpoints are publicly available. The parameters to some endpoints are non-trivial as some might require deeper understanding of the Soccoro backend.

Note: The API does depend on your permissions and if you include an API Token with your requests.
Some endpoints' accessibility depend entirely on your permissions and use of API Tokens.

{% for endpoint in endpoints %}
{% if endpoint.required_permissions %}

Only available if used with an API Token associated with {% for permission in endpoint.required_permissions %} {{ permission }} {% if not loop.last %} and {% endif %} {% endfor %} permission.

{% endif %}

{{ endpoint.name }}

{{ ' | '.join(endpoint.methods) }} {{ base_url }}{{ endpoint.url }}

{% if endpoint.docstring %}

Documentation notes

{{ endpoint.docstring }}
{% endif %} {% if endpoint.parameters %} {% for parameter in endpoint.parameters %} {% endfor %}
Parameter key Required? Type Default Test drive
{{ parameter.name }} {% if parameter.required %}Required {% else %}Optional {% endif %} {{ describe_friendly_type(parameter['type']) }} {{ endpoint['defaults'].get(parameter['name'], '') }} {{ make_test_input(parameter, endpoint['defaults']) }}
{% else %}

Takes no parameters

{% endif %}
Loading...

An error happened on the server when trying this URL.

Using

Status

Output:


          
            Looks like this is binary output!
            See it anyway?
            Download the content?
          
          

Size:

{% endfor %}
{% endblock %}