{% extends "passerelle/manage/service_view.html" %}
{% load i18n passerelle %}

{% block description %}
<p>
Service URL : {{ object.service_url }}
</p>
{% endblock %}

{% block endpoints %}
<ul>
<li>{% trans 'Listing resources:' %} <a
        >{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='resources' %}</a> (GET)</li>
<li>{% trans 'Creating a new user:' %} <a
        >{{ site_base_uri }}{% url 'bdp-post-adherent' slug=object.slug %}</a> (POST)</li>
</ul>

<div>
<h3>{% trans 'Examples' %}</h3>
<ul>
<li>{% trans 'Libraries:' %} <a
        href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}"
        >{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}</a>
</li>
<li>{% trans 'Libraries with a text label:' %} <a
        href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}?text_key=nom"
        >{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}?text_key=nom</a>
</li>
<li>{% trans 'Members:' %} <a
        href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}"
        >{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}</a>
</li>
<li>{% trans 'Filtered Members:' %} <a
        href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}?filter[0][field]=email&filter[0][operator]=eq&filter[0][value]=login@example.net"
        >{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}?filter[0][field]=email&filter[0][operator]=eq&filter[0][value]=login@example.net</a>
</li>
</ul>
</div>
{% endblock %}

{% block security %}
<p>
{% trans 'Accessing is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_access' %}
{% endblock %}
