CouchPotato API Documentation

{% for route in routes %} {% if api_docs.get(route) %}

{{route}}

{{api_docs[route].get('desc', '')}}
{% if api_docs[route].get('params') %}

Params

{% for param in api_docs[route]['params'] %} {% endfor %}
{{param}} {{ api_docs[route]['params'][param].get('type', 'string') }} {{ api_docs[route]['params'][param]['desc'] }}
{% endif %} {% if api_docs[route].get('return') %}

Return

{{ api_docs[route]['return'].get('type', '{"success": True}') }}
{% if api_docs[route]['return'].get('example') %}

Example

{{ api_docs[route]['return'].get('example', '')|safe }}
{% endif %}
{% endif %}
{% endif %} {% endfor %}

Missing documentation

{{', '.join(api_docs_missing)}}