{% load api_tags %} {{title}}

{{title}}

{% if description %}

{{description}}

{% endif %} {% if version %} {% endif %} {% if baseUri %} {% endif %} {% if mediaType %} {% endif %}
API Details
Version {{version}}
Base URI {{baseUri}}
Media Type {{mediaType}}

Index

{% for endpoint in endpoints %}

{{endpoint.displayName}}

{{endpoint.description}}

{% for method in endpoint.methods %}
{{method.method_type}} {{endpoint.url}}

{{method.description}}

{% if method.request_schema %}

Request:

{{method.request_schema.description}}

{% if method.request_schema.anyOf %}

Required fields (any): {% with method.request_schema.anyOf as required %} {% include "ramlwrap_default_method_required_fields.html" %} {% endwith %}

{% endif %} {% if method.request_schema.oneOf %}

Required fields (one): {% with method.request_schema.oneOf as required %} {% include "ramlwrap_default_method_required_fields.html" %} {% endwith %}

{% endif %} {% with method.request_schema as method %} {% include "ramlwrap_default_method.html" %} {% endwith %} {% endif %} {% if method.request_example %}

Request Example:

{{method.request_example|json_dump}}
{% endif %} {% if method.request_examples %} {% for key in method.request_examples %}

{{key}} Request Example:

{{method.request_examples|hash:key|json_dump}}
{% endfor %} {% endif %} {% if method.response_schema %}

Response:

{{method.response_schema.description}}

{% with method.response_schema as method %} {% include "ramlwrap_default_method.html" %} {% endwith %} {% endif %} {% if method.response_example %}

Response Example:

{{method.response_example|json_dump}}
{% endif %} {% if method.response_examples %} {% for key in method.response_examples %}

{{key}} Response Example:

{{method.response_examples|hash:key|json_dump}}
{% endfor %} {% endif %}
{% endfor %} {% if not forloop.last %}
{% endif %}
{% endfor %}