{# Params #}

Parameters

{% for param in method.params %}
{{ param.name }} {# Show Default #} {% if "default" in param.schema_.__fields_set__ %} {% with value=param.schema_.default %} = {% include "schema/_value.html" %} {% endwith %} {% endif %} {# Required #} {% if param.required %} required {% endif %} {% with schema=param.schema_, schema_id=method_id + id(loop.index0) + "-param" %}
{% include "schema/schema.html" %}
{% endwith %}
{% endfor %}
{# Examples/Try it out #} {% if examples.get(method.name) %}

Example Request

{# Try it out #}
{# Example #} {% with code=examples.get(method.name)[0], code_id="params-" + method_id %} {% include "json.html" %} {% endwith %}
{% endif %} {# Close Button #} {% with title=method.name, modal_id="method-" + method_id + "-modal" %} {% include "modals/_title_bar.html" %} {% endwith %}
{# Result #}

Result

{% with schema=method.result.schema_, schema_id=method_id + "-result" %} {% include "schema/schema.html" %} {% endwith %}
{% if examples.get(method.name) %}

Example Response

{% with code=examples.get(method.name)[1], code_id="result-" + method_id %} {% include "json.html" %} {% endwith %} {% endif %}