Allowed Methods:
[
{% for method in api.allowed_methods %}
{{ method }}{% if not forloop.last %},{% endif %}
{% endfor %}
]
{% if api.model %}
Model: {{ api.model }}
{% endif %}
{% if api.description %}
Description:
{{ api.description }}
{% endif %}
{% if api.params %}
Parameters:
{% for key, value in api.params %}
-
{{ key }}: {{value}}
{% endfor %}
{% endif %}
{% if api.fields %}
Fields:
Name |
Type |
Read-only |
Default |
Min |
Max |
{% for field in api.fields %}
{% for name, details in field.items %}
{{name}}
|
{{details.type}}
|
{% if details.read_only %}x{% endif %}
|
{% if details.default %}
{{ details.default }}
{% endif %}
|
{% if details.min_length %}
{{ details.min_length }}
{% endif %}
|
{% if details.max_length %}
{{ details.max_length }}
{% endif %}
|
{% endfor %}
{% endfor %}
{% endif %}
{% if api.filter_fields %}
Filter fields:
[
{% for field in api.filter_fields %}
{{ field }}{% if not forloop.last %},{% endif %}
{% endfor %}
]
{% endif %}
{% if api.search_fields %}
Search fields:
[
{% for field in api.search_fields %}
{{ field }}{% if not forloop.last %},{% endif %}
{% endfor %}
]
{% endif %}
{% if api.ordering %}
Ordering:
[
{% for field in api.ordering %}
{{ field }}{% if not forloop.last %},{% endif %}
{% endfor %}
]
{% endif %}