swap_horiz
{{ endpoint.complete_path }}
{% for method in endpoint.methods %}
{{ method }}
{% endfor %}
{{ endpoint.name }}
{% if endpoint.docstring %}
{{ endpoint.docstring|markdownify|keep_formatting }}
{% else %}
No docstring specified
{% endif %}
{% if endpoint.authentication_classes %}
Action is allowed if any of these auth types is provided(logic OR)
Type |
Description |
{% for cls in endpoint.authentication_classes %}
{{ cls.0 }} |
{{ cls.1|markdownify|keep_formatting }} |
{% endfor %}
{% endif %}
{% if endpoint.permission_classes %}
Action is allowed when all of conditions are satisfied(logic AND)
Type |
Description |
{% for cls in endpoint.permission_classes %}
{{ cls.0 }} |
{{ cls.1|markdownify|keep_formatting }} |
{% endfor %}
{% endif %}
{% if endpoint.filter_backends %}
Param name |
Description |
{% for filter in endpoint.filter_backends%}
{{ filter.0 }} |
{{ filter.1|markdownify|keep_formatting }} |
{% endfor %}
{% endif %}
{% if endpoint.extra_url_params %}
{% if endpoint.extra_url_params %}
Param name |
Type |
Description |
{% for param in endpoint.extra_url_params %}
{{ param.0 }} |
{{ param.1 }} |
{{ param.2|markdownify|keep_formatting }} |
{% endfor %}
{% endif %}
{% endif %}
Request Fields:
{% if endpoint.input_fields %}
{% include 'drf_autodocs/components/fields_list.html' with fields=endpoint.input_fields request_fields=True %}
{% else %}
No input data specified
{% endif %}
Response Fields:
{% if endpoint.output_fields %}
{% include 'drf_autodocs/components/fields_list.html' with fields=endpoint.output_fields response_fields=True %}
{% elif endpoint.input_fields %}
{% include 'drf_autodocs/components/fields_list.html' with fields=endpoint.input_fields response_fields=True %}
{% else %}
No output data specified
{% endif %}