2015-06-01 13:03:42 +02:00
|
|
|
``{{endpoint.method}} {{endpoint.path}}``
|
|
|
|
|
{{(5 + (endpoint.path | length) + (endpoint.method | length)) * title_kind}}
|
|
|
|
|
|
|
|
|
|
{{endpoint.desc | wrap(80)}}
|
2015-06-01 15:34:13 +02:00
|
|
|
|
2015-06-01 15:20:24 +02:00
|
|
|
{{":Rate-limited: Yes." if endpoint.rate_limited else "" }}
|
|
|
|
|
{{":Requires auth: Yes." if endpoint.requires_auth else "" }}
|
2015-06-01 15:34:13 +02:00
|
|
|
|
2015-06-01 13:03:42 +02:00
|
|
|
Request format:
|
|
|
|
|
|
2015-06-01 16:26:48 +02:00
|
|
|
================== ================= ===========================================
|
|
|
|
|
Parameter Value Description
|
|
|
|
|
================== ================= ===========================================
|
|
|
|
|
{% for loc in endpoint.req_param_by_loc -%}
|
2015-06-01 18:48:16 +02:00
|
|
|
*{{loc}} parameters*
|
2015-06-01 16:26:48 +02:00
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
|
{% for param in endpoint.req_param_by_loc[loc] -%}
|
2015-06-01 16:54:16 +02:00
|
|
|
{{param.key}}{{param.type|indent(19-param.key|length)}}{{param.desc|indent(18-param.type|length)|wrap(43)|indent_block(37)}}
|
|
|
|
|
{% endfor -%}
|
|
|
|
|
{% endfor -%}
|
2015-06-01 16:26:48 +02:00
|
|
|
================== ================= ===========================================
|
2015-06-01 13:03:42 +02:00
|
|
|
|
2015-06-01 16:54:16 +02:00
|
|
|
{% if endpoint.res_params|length > 0 -%}
|
|
|
|
|
Response format:
|
|
|
|
|
|
|
|
|
|
================== ================= ===========================================
|
|
|
|
|
Parameter Value Description
|
|
|
|
|
================== ================= ===========================================
|
|
|
|
|
{% for param in endpoint.res_params -%}
|
|
|
|
|
{{param.key}}{{param.type|indent(19-param.key|length)}}{{param.desc|indent(18-param.type|length)|wrap(43)|indent_block(37)}}
|
|
|
|
|
{% endfor -%}
|
|
|
|
|
================== ================= ===========================================
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2015-06-01 15:20:24 +02:00
|
|
|
Example request::
|
|
|
|
|
|
|
|
|
|
{{endpoint.example.req | indent_block(2)}}
|
|
|
|
|
|
|
|
|
|
Example response::
|
|
|
|
|
|
|
|
|
|
{{endpoint.example.res | indent_block(2)}}
|