passerelle/passerelle/apps/bdp/templates/bdp/bdp_detail.html

57 lines
2.6 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "passerelle/manage/service_view.html" %}
{% load i18n passerelle %}
{% block description %}
<p>
Service URL : {{ object.service_url }}
</p>
{% endblock %}
{% block endpoints %}
<ul class="endpoints">
{% url 'bdp-resources' slug=object.slug resources='resources' as resources_url%}
<li class="get-method">
<div class="description"><span class="description--label">{% trans 'Listing resources:' %}</span>
<a class="example-url" href="{{ resources_url }}">{{ resources_url }}</a></div>
</li>
{% url 'bdp-post-adherent' slug=object.slug as adherent_url%}
<li class="post-method">
<div class="description"><span class="description--label">{% trans 'Creating a new user:' %}</span>
<a class="example-url" href="adherent_url" >{{ adherent_url }}</a></div>
</li>
</ul>
<h3>{% trans 'Examples' %}</h3>
<ul class="endpoints">
<li class="get-method">
<div class="description"><span class="description--label">{% trans 'Libraries:' %}</span>
<a class="example-url" href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}"
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}</a></div>
</li>
{% url 'bdp-resources' slug=object.slug resources='bibliotheques' as bibliotheques_url %}
<li class="get-method">
<div class="description"><span class="description--label">{% trans 'Libraries with a text label:' %}</span>
<a class="example-url" href="{{ bibliotheques_url }}?text_key=nom">{{ bibliotheques_url }}?text_key=nom</a></div>
</li>
{% url 'bdp-resources' slug=object.slug resources='adherents' as adherents_url %}
<li class="get-method">
<div class="description"><span class="description--label">{% trans 'Members:' %}</span>
<a class="example-url" href="{{ adherents_url }}">{{ adherents_url }}</a></div>
</li>
{% url 'bdp-resources' slug=object.slug resources='adherents' as adherents_filter_url %}
<li class="get-method">
<div class="description"><span class="description--label">{% trans 'Filtered Members:' %}</span>
<a class="example-url" href="{{ adherents_filter_url }}?filter[0][field]=email&filter[0][operator]=eq&filter[0][value]=login@example.net">{{ adherents_filter_url }}?filter[0][field]=email&filter[0][operator]=eq&filter[0][value]=login@example.net</a></div>
</li>
</ul>
{% endblock %}
{% block security %}
<p>
{% trans 'Accessing is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_access' %}
{% endblock %}