
.. _api-reference:

API REFERENCE
=============

Spec version {{ instance.version }}

{% for attr in instance | endpoints %}
{%- if attr.rst_target %}
.. _{{attr.rst_target}}:
{% endif %}
    {%- if attr.getter_name or attr.setter_name %}
{{ attr.full_name }}
-------------------------------------------------------------------

ID: {{ attr.ep_id }}
Type: {{ attr.dtype.nickname }}
{% if None != attr.unit %}Units: {{attr.unit}} {%- endif %}

{{ attr.summary }}

    {%- elif attr.caller_name %}
        {%- set comma = joiner(", ") %}
{{ attr.name }}({%- for arg in attr.arguments %}{{ comma() }}{{ arg.name }} {%- endfor %}) -> {{ attr.dtype.nickname }}
-------------------------------------------------------------------

ID: {{ attr.ep_id }}
{% if attr.dtype %}Return Type: {{ attr.dtype.nickname }} {%- endif %}
{% if attr.unit %}Units: {{ attr.unit }} {%- endif %}

{{ attr.summary }}

    {%- endif %}

{% endfor %}