0002-templates-adapt-custom-connectors-endpoints-presenta.patch
passerelle/apps/bdp/templates/bdp/bdp_detail.html | ||
---|---|---|
8 | 8 |
{% endblock %} |
9 | 9 | |
10 | 10 |
{% block endpoints %} |
11 |
<ul> |
|
12 |
<li>{% trans 'Listing resources:' %} <a |
|
13 |
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='resources' %}</a> (GET)</li> |
|
14 |
<li>{% trans 'Creating a new user:' %} <a |
|
15 |
>{{ site_base_uri }}{% url 'bdp-post-adherent' slug=object.slug %}</a> (POST)</li> |
|
11 |
<ul class="endpoints"> |
|
12 |
{% url 'bdp-resources' slug=object.slug resources='resources' as resources_url%} |
|
13 |
<li class="get-method"> |
|
14 |
<span class="description">{% trans 'Listing resources:' %}</span> |
|
15 |
<a class="example-url" href="{{ resources_url }}">{{ resources_url }}</a> |
|
16 |
</li> |
|
17 |
{% url 'bdp-post-adherent' slug=object.slug as adherent_url%} |
|
18 |
<li class="post-method"> |
|
19 |
<span class="description">{% trans 'Creating a new user:' %}</span> |
|
20 |
<a class="example-url" href="adherent_url" >{{ adherent_url }}</a> |
|
21 |
</li> |
|
16 | 22 |
</ul> |
17 | 23 | |
18 |
<div> |
|
19 | 24 |
<h3>{% trans 'Examples' %}</h3> |
20 |
<ul> |
|
21 |
<li>{% trans 'Libraries:' %} <a |
|
22 |
href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}" |
|
23 |
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}</a> |
|
24 |
</li> |
|
25 |
<li>{% trans 'Libraries with a text label:' %} <a |
|
26 |
href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}?text_key=nom" |
|
27 |
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}?text_key=nom</a> |
|
28 |
</li> |
|
29 |
<li>{% trans 'Members:' %} <a |
|
30 |
href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}" |
|
31 |
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='adherents' %}</a> |
|
32 |
</li> |
|
33 |
<li>{% trans 'Filtered Members:' %} <a |
|
34 |
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" |
|
35 |
>{{ 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> |
|
36 |
</li> |
|
25 |
<ul class="endpoints"> |
|
26 |
<li class="get-method"> |
|
27 |
<span class="description">{% trans 'Libraries:' %}</span> |
|
28 |
<a class="example-url" href="{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}" |
|
29 |
>{{ site_base_uri }}{% url 'bdp-resources' slug=object.slug resources='bibliotheques' %}</a> |
|
30 |
</li> |
|
31 |
{% url 'bdp-resources' slug=object.slug resources='bibliotheques' as bibliotheques_url %} |
|
32 |
<li class="get-method"> |
|
33 |
<span class="description">{% trans 'Libraries with a text label:' %}</span> |
|
34 |
<a class="example-url" href="{{ bibliotheques_url }}?text_key=nom">{{ bibliotheques_url }}?text_key=nom</a> |
|
35 |
</li> |
|
36 |
{% url 'bdp-resources' slug=object.slug resources='adherents' as adherents_url %} |
|
37 |
<li class="get-method"> |
|
38 |
<span class="description">{% trans 'Members:' %}</span> |
|
39 |
<a class="example-url" href="{{ adherents_url }}">{{ adherents_url }}</a> |
|
40 |
</li> |
|
41 |
{% url 'bdp-resources' slug=object.slug resources='adherents' as adherents_filter_url %} |
|
42 |
<li class="get-method"> |
|
43 |
<span class="description">{% trans 'Filtered Members:' %}</span> |
|
44 |
<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> |
|
45 |
</li> |
|
37 | 46 |
</ul> |
38 |
</div> |
|
47 | ||
39 | 48 |
{% endblock %} |
40 | 49 | |
50 | ||
41 | 51 |
{% block security %} |
42 | 52 |
<p> |
43 | 53 |
{% trans 'Accessing is limited to the following API users:' %} |
passerelle/apps/clicrdv/templates/clicrdv/clicrdv_detail.html | ||
---|---|---|
8 | 8 |
{% endblock %} |
9 | 9 | |
10 | 10 |
{% block endpoints %} |
11 |
<ul> |
|
12 |
<li>{% trans 'Listing all sets:' %} <a href="{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}" |
|
13 |
>{{ site_base_uri }}{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}</a></li> |
|
14 |
<li>{% trans 'Listing interventions in a set:' %} <a |
|
15 |
>{{ site_base_uri }}{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug %}/<i><set_id></i></a></li> |
|
16 |
<li>{% trans 'Listing of free dates and times for an intervention:' %} <a |
|
17 |
>{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i><intervention_id></i>/datetimes</a></li> |
|
18 |
<li>{% trans 'Listing of free dates for an intervention:' %} <a |
|
19 |
>{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i><intervention_id></i>/dates</a></li> |
|
20 |
<li>{% trans 'Listing of free times a given date for an intervention:' %} <a |
|
21 |
>{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}interventions/<i><intervention_id></i>/<i><date></i>/times</a></li> |
|
22 |
<li>{% trans 'Creating a new appointment:' %} <a |
|
23 |
>{{ site_base_uri }}{% url 'clicrdv-create-appointment-qs' slug=object.slug %}</a> (POST)</li> |
|
24 |
<li>{% trans 'Cancelling an appointment:' %} <a |
|
25 |
>{{ site_base_uri }}{% url 'clicrdv-view' slug=object.slug %}<i><appointment_id></i>/cancel</a></li> |
|
11 |
<ul class="endpoints"> |
|
12 |
<li class="get-method"> |
|
13 |
<span class="description">{% trans 'Listing all sets:' %}</span> |
|
14 |
{% url 'generic-endpoint' connector="clicrdv" slug=object.slug endpoint="interventionsets" slug=object.slug as interventionsets_url %} |
|
15 |
<a class="example-url" href="{{ interventionsets_url }}">{{ site_base_uri }}{{ interventionsets_url }}</a> |
|
16 |
</li> |
|
17 |
<li class="get-method"> |
|
18 |
<span class="description">{% trans 'Listing interventions in a set:' %}</span> |
|
19 |
<a class="example-url" href="{{ interventionsets_url }}">{{ site_base_uri }}{{ interventionsets_url }}/<i><set_id></i></a> |
|
20 |
</li> |
|
21 |
<li class="get-method"> |
|
22 |
{% url 'clicrdv-view' slug=object.slug as view_url %} |
|
23 |
<span class="description">{% trans 'Listing of free dates and times for an intervention:' %}</span> |
|
24 |
<a class="example-url">{{ site_base_uri }}{{ view_url }}interventions/<i><intervention_id></i>/datetimes</a></a> |
|
25 |
</li> |
|
26 |
<li class="get-method"> |
|
27 |
<span class="description">{% trans 'Listing of free dates for an intervention:' %}</span> |
|
28 |
<a class="example-url">{{ site_base_uri }}{{ view_url }}interventions/<i><intervention_id></i>/dates</a> |
|
29 |
</li> |
|
30 |
<li class="get-method"> |
|
31 |
<span class="description">{% trans 'Listing of free times a given date for an intervention:' %}</span> |
|
32 |
<a class="example-url">{{ site_base_uri }}{{ view_url }}interventions/<i><intervention_id></i>/<i><date></i></a> |
|
33 |
</li> |
|
34 |
<li class="post-method"> |
|
35 |
{% url 'clicrdv-create-appointment-qs' slug=object.slug as create_appointment_url %} |
|
36 |
<span class="description">{% trans 'Creating a new appointment:' %}</span> |
|
37 |
<a class="example-url" href="{{ create_appointment_url }}">{{ site_base_uri }}{{ create_appointment_url }}</a> |
|
38 |
</li> |
|
39 |
<li class="get-method"> |
|
40 |
{% url 'clicrdv-cancel-appointment' slug=object.slug appointment_id='000' as appointment_cancel_url %} |
|
41 |
<span class="description">{% trans 'Cancelling an appointment:' %}</span> |
|
42 |
<a class="example-url">{{ site_base_uri }}{{ view_url }}<i><appointment_id></i>/cancel</a> |
|
43 |
</li> |
|
26 | 44 |
</ul> |
27 | 45 |
{% endblock %} |
28 | 46 |
passerelle/apps/csvdatasource/templates/csvdatasource/csvdatasource_detail.html | ||
---|---|---|
13 | 13 |
{% endblock %} |
14 | 14 | |
15 | 15 |
{% block endpoints %} |
16 |
<ul class="endpoints"> |
|
16 | 17 |
{% url 'generic-endpoint' connector='csvdatasource' slug=object.slug endpoint='data' as csvdatasource_data_url %} |
17 |
<ul> |
|
18 |
<li>{% trans "Returning all file lines:" %} |
|
19 |
<a href="{{ csvdatasource_data_url }}">{{ csvdatasource_data_url }}</a> |
|
20 |
</li> |
|
21 |
<ul> |
|
22 |
<li>{% trans "Returning lines containing 'abc' in 'text' column (case insensitive):" %} |
|
23 |
<a href="{{ csvdatasource_data_url }}?q=abc">{{ csvdatasource_data_url }}?q=abc</a> |
|
24 |
</li> |
|
25 |
</ul> |
|
26 |
{% for query in object.query_set.all %} |
|
27 |
<li>{{ query.label }}: |
|
28 |
<a href="{% url 'generic-endpoint' connector='csvdatasource' slug=object.slug endpoint='query' rest=query.slug %}/">{% url 'generic-endpoint' connector='csvdatasource' slug=object.slug endpoint='query' rest=query.slug %}/</a> |
|
29 |
{% if query.description %}— {{ query.description }}{% endif %} |
|
30 |
</li> |
|
31 |
{% endfor %} |
|
18 |
<li class="get-method"> |
|
19 |
<span class="description">{% trans "Returning all file lines:" %}</span> |
|
20 |
<a class="example-url" href="{{ csvdatasource_data_url }}">{{ csvdatasource_data_url }}</a> |
|
21 |
</li> |
|
22 |
<li class="get-method"> |
|
23 |
<span class="description">{% trans "Returning lines containing 'abc' in 'text' column (case insensitive):" %}</span> |
|
24 |
<a class="example-url" href="{{ csvdatasource_data_url }}?q=abc">{{ csvdatasource_data_url }}?q=abc</a> |
|
25 |
</li> |
|
26 |
{% for query in object.query_set.all %} |
|
27 |
<li class="get-method"><span class="description">{{ query.label }}:</span> |
|
28 |
<a class="example-url" href="{% url 'generic-endpoint' connector='csvdatasource' slug=object.slug endpoint='query' rest=query.slug %}/">{% url 'generic-endpoint' connector='csvdatasource' slug=object.slug endpoint='query' rest=query.slug %}/</a> |
|
29 |
{% if query.description %}— {{ query.description }}{% endif %} |
|
30 |
</li> |
|
31 |
{% endfor %} |
|
32 | 32 |
</ul> |
33 | 33 |
{% endblock %} |
34 | 34 |
passerelle/apps/family/templates/family/genericfamily_detail.html | ||
---|---|---|
3 | 3 | |
4 | 4 |
{% block endpoints %} |
5 | 5 |
<h4>{% trans "Family" %}</h4> |
6 |
<ul> |
|
7 |
<li> |
|
6 |
<ul class="endpoints">
|
|
7 |
<li class="get-method">
|
|
8 | 8 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='family' rest='link/' as link_url %} |
9 |
{% trans 'Link to a family:' %}
|
|
10 |
<a href="{{ link_url }}">{{ site_base_uri }}{{ link_url }}?NameID=...&login=...&password=...</a> |
|
9 |
<span class="description">{% trans 'Link to a family:' %}</span>
|
|
10 |
<a class="example-url" href="{{ link_url }}">{{ site_base_uri }}{{ link_url }}?NameID=...&login=...&password=...</a>
|
|
11 | 11 |
</li> |
12 |
<li> |
|
12 |
<li class="get-method">
|
|
13 | 13 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='family' rest='unlink/' as unlink_url %} |
14 |
{% trans 'Unlink from a family:' %}
|
|
15 |
<a href="{{ unlink_url }}">{{ site_base_uri }}{{ unlink_url }}?NameID=...</a> |
|
14 |
<span class="description">{% trans 'Unlink from a family:' %}</span>
|
|
15 |
<a class="example-url" href="{{ unlink_url }}">{{ site_base_uri }}{{ unlink_url }}?NameID=...</a>
|
|
16 | 16 |
</li> |
17 |
<li> |
|
17 |
<li class="get-method">
|
|
18 | 18 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='family' as family_url %} |
19 |
{% trans 'Get family informations:' %}
|
|
20 |
<a href="{{ family_url }}">{{ site_base_uri }}{{ family_url }}?NameID=...</a> |
|
19 |
<span class="description">{% trans 'Get family informations:' %}</span>
|
|
20 |
<a class="example-url" href="{{ family_url }}">{{ site_base_uri }}{{ family_url }}?NameID=...</a>
|
|
21 | 21 |
</li> |
22 |
<li> |
|
22 |
<li class="get-method">
|
|
23 | 23 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='family' rest='adults/' as adults_url %} |
24 |
{% trans 'Get family adults:' %}
|
|
25 |
<a href="{{ adults_url }}">{{ site_base_uri }}{{ adults_url }}?NameID=...</a> |
|
24 |
<span class="description">{% trans 'Get family adults:' %}</span>
|
|
25 |
<a class="example-url" href="{{ adults_url }}">{{ site_base_uri }}{{ adults_url }}?NameID=...</a>
|
|
26 | 26 |
</li> |
27 |
<li> |
|
27 |
<li class="get-method">
|
|
28 | 28 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='family' rest='children/' as children_url %} |
29 |
{% trans 'Get family children:' %}
|
|
30 |
<a href="{{ children_url }}">{{ site_base_uri }}{{ children_url }}?NameID=...</a> |
|
29 |
<span class="description">{% trans 'Get family children:' %}</span>
|
|
30 |
<a class="example-url" href="{{ children_url }}">{{ site_base_uri }}{{ children_url }}?NameID=...</a>
|
|
31 | 31 |
</li> |
32 | 32 |
</ul> |
33 | ||
34 | 33 |
<h4>{% trans "Invoices" %}</h4> |
35 |
<ul> |
|
36 |
<li> |
|
34 |
<ul class="endpoints">
|
|
35 |
<li class="get-method">
|
|
37 | 36 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='regie' rest='invoices/' as invoices_url %} |
38 |
{% trans 'Get payable invoices:' %}
|
|
39 |
<a href="{{ invoices_url }}">{{ site_base_uri }}{{ invoices_url }}?NameID=...</a> |
|
37 |
<span class="description">{% trans 'Get payable invoices:' %}</span>
|
|
38 |
<a class="example-url" href="{{ invoices_url }}">{{ site_base_uri }}{{ invoices_url }}?NameID=...</a>
|
|
40 | 39 |
</li> |
41 |
<li> |
|
40 |
<li class="get-method">
|
|
42 | 41 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='regie' rest='invoices/history/' as invoices_history_url %} |
43 |
{% trans 'Get invoices history:' %}
|
|
44 |
<a href="{{ invoices_history_url }}">{{ site_base_uri }}{{ invoices_history_url }}?NameID=...</a> |
|
42 |
<span class="description">{% trans 'Get invoices history:' %}</span>
|
|
43 |
<a class="example-url" href="{{ invoices_history_url }}">{{ site_base_uri }}{{ invoices_history_url }}?NameID=...</a>
|
|
45 | 44 |
</li> |
46 |
<li> |
|
45 |
<li class="get-method">
|
|
47 | 46 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='regie' rest='invoice/invoice_id/' as invoice_url %} |
48 |
{% trans 'Get invoice details:' %}
|
|
49 |
<a href="{{ invoice_url }}">{{ site_base_uri }}{{ invoice_url }}</a> |
|
47 |
<span class="description">{% trans 'Get invoice details:' %}</span>
|
|
48 |
<a class="example-url" href="{{ invoice_url }}">{{ site_base_uri }}{{ invoice_url }}</a>
|
|
50 | 49 |
</li> |
51 |
<li> |
|
50 |
<li class="get-method">
|
|
52 | 51 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='regie' rest='invoice/invoice_id/pdf/' as invoice_pdf_url %} |
53 |
{% trans 'Get invoice PDF:' %}
|
|
52 |
<span class="description">{% trans 'Get invoice PDF:' %}</span>
|
|
54 | 53 |
<a href="{{ invoice_pdf_url }}">{{ site_base_uri }}{{ invoice_pdf_url }}</a> |
55 | 54 |
</li> |
56 |
<li> |
|
55 |
<li class="post-method">
|
|
57 | 56 |
{% url 'generic-endpoint' connector='family' slug=object.slug endpoint='regie' rest='invoice/invoice_id/pay/' as invoice_pay_url %} |
58 |
{% trans 'Pay invoice:' %}
|
|
59 |
<a href="{{ invoice_pay_url }}">{{ site_base_uri }}{{ invoice_pay_url }}</a> |
|
57 |
<span class="description">{% trans 'Pay invoice:' %}</span>
|
|
58 |
<a class="example-url" href="{{ invoice_pay_url }}">{{ site_base_uri }}{{ invoice_pay_url }}</a>
|
|
60 | 59 |
</li> |
61 | 60 |
</ul> |
62 | 61 |
{% endblock %} |
passerelle/apps/gdc/templates/gdc/gdc_detail.html | ||
---|---|---|
15 | 15 |
{% endblock %} |
16 | 16 | |
17 | 17 |
{% block endpoints %} |
18 |
<ul> |
|
19 |
<li>{% trans 'Listing communes:' %} <a href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="communes" %}"
|
|
18 |
<ul class="endpoints">
|
|
19 |
<li class="get-method"><span class="description">{% trans 'Listing communes:' %}</span> <a class="example-url" href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="communes" %}"
|
|
20 | 20 |
>{{ site_base_uri }}{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="communes" %}</a></li> |
21 |
<li>{% trans 'Listing streets:' %} <a href="{% url 'gdc-voies' slug=object.slug insee=34022%}"
|
|
21 |
<li class="get-method"><span class="description">{% trans 'Listing streets:' %}</span> <a class="example-url" href="{% url 'gdc-voies' slug=object.slug insee=34022%}"
|
|
22 | 22 |
>{{ site_base_uri }}{% url 'gdc-view' slug=object.slug %}/voies/<i><insee></i></a></li> |
23 |
<li>{% trans 'Listing subjects:' %} <a href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="objets" %}"
|
|
23 |
<li class="get-method"><span class="description">{% trans 'Listing subjects:' %}</span> <a class="example-url" href="{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="objets" %}"
|
|
24 | 24 |
>{{ site_base_uri }}{% url 'generic-endpoint' connector="gdc" slug=object.slug endpoint="objets" %}</a></li> |
25 |
<li>{% trans 'Posting a new request:' %} <a href="{% url 'gdc-post' slug=object.slug %}"
|
|
26 |
>{{ site_base_uri }}{% url 'gdc-post' slug=object.slug %}</a> (POST)</li>
|
|
25 |
<li class="post-method"><span class="description">{% trans 'Posting a new request:' %}</span> <a class="example-url" href="{% url 'gdc-post' slug=object.slug %}"
|
|
26 |
>{{ site_base_uri }}{% url 'gdc-post' slug=object.slug %}</a></li> |
|
27 | 27 |
</ul> |
28 | 28 |
{% endblock %} |
29 | 29 |
passerelle/apps/mdel/templates/mdel/mdel_detail.html | ||
---|---|---|
2 | 2 |
{% load i18n passerelle %} |
3 | 3 | |
4 | 4 |
{% block endpoints %} |
5 |
<ul> |
|
6 |
<li> |
|
7 |
<h4>{%trans 'Create Demand'%}</h4>
|
|
5 |
<ul class="endpoints">
|
|
6 |
<li class="post-method">
|
|
7 |
<span class="description">{%trans 'Create Demand'%}</span>
|
|
8 | 8 |
{% url "generic-endpoint" connector="mdel" slug=object.slug endpoint="create" as create %} |
9 |
<p> <strong>POST</strong> <a href="{{create}}">{{create}}</a></p> |
|
10 |
<ul> |
|
11 |
<li> |
|
12 |
<p>ILE-LA PAYLOAD</p> |
|
13 |
<ul style="font-size:smaller; font-style:oblique"> |
|
14 |
<p>Extra</p> |
|
15 |
<ul> |
|
16 |
<li>demand_type (ile-la, rco-la, aec-la) *</li> |
|
17 |
<li>code_insee *</li> |
|
18 |
</ul> |
|
19 |
<p>Fields</p> |
|
20 |
<ul> |
|
21 |
<li>nom_famille *</li> |
|
22 |
<li>nom_usage *</li> |
|
23 |
<li>prenoms *</li> |
|
24 |
<li>date_naissance *</> |
|
25 |
<li>lieunaiss_localite *</> |
|
26 |
<li>lieunaiss_division_territoriale *</> |
|
27 |
<li>lieunaiss_code_postal *</> |
|
28 |
<li>lieunaiss_pays (iso3a) *</> |
|
29 |
<li>sexe (H/F) *</li> |
|
30 |
<li>nationalite (iso3a ie FRA) *</li> |
|
31 |
<li>adresse_num_voie *</li> |
|
32 |
<li>adresse_type_voie *</li> |
|
33 |
<li>adresse_nom_voie </li> |
|
34 |
<li>adresse_code_postal *</li> |
|
35 |
<li>adresse_localite *</li> |
|
36 |
<li>adresse_division_territoriale *</li> |
|
37 |
<li>contact_telephone (0650643793)</li> |
|
38 |
<li>contact_email (lucas@lucas.org)</li> |
|
39 |
<li>inscription_liste_type (p, ce, cm)*</li> |
|
40 |
<li>inscription_localite *</li> |
|
41 |
<li>inscription_division_territoriale *</li> |
|
42 |
<li>insription_code_insee *</li> |
|
43 |
<li>inscription_date *</li> |
|
44 |
<li>anterieur_situation (prem, cci)</li> |
|
45 |
<li>anterieur_consulat (consulat/amabassade)</li> |
|
46 |
<li>anterieur_consulat_pays</li> |
|
47 |
<li>anterieur_localite</li> |
|
48 |
<li>anterieur_division_territoriale</li> |
|
49 |
<li>anterieur_ue_localite</li> |
|
50 |
<li>anterieur_ue_division_territoriale</li> |
|
51 |
<li>anterieur_ue_localite_pays</li> |
|
52 |
<li>justificatif_identite</li> |
|
53 |
<li>justificatif_domicile</li> |
|
54 |
</ul> |
|
55 |
</ul> |
|
56 |
<li> |
|
57 |
<p>RCO-LA PAYLOAD</p> |
|
58 |
</li> |
|
59 |
<li> |
|
60 |
<p>AEC-LA PAYLOAD</p> |
|
61 |
<ul style="font-size:smaller; font-style:oblique"> |
|
62 |
<p>Extra</p> |
|
63 |
<ul> |
|
64 |
<li>demand_type (aec-la)</li> |
|
65 |
<li>code_insee</li> |
|
66 |
<li>code_postal</li> |
|
67 |
<li>aec_type</li> |
|
68 |
<li>aec_type_raw</li> |
|
69 |
<li>ville</li> |
|
70 |
</ul> |
|
71 |
<p>Fields</p> |
|
72 |
<ul> |
|
73 |
<li>aec_nature</li> |
|
74 |
<li>aec_nature_raw</li> |
|
75 |
<li>date_acte</li> |
|
76 |
<li>demandeur_adresse_code_postal</li> |
|
77 |
<li>demandeur_adresse_complement</li> |
|
78 |
<li>demandeur_adresse_ville</li> |
|
79 |
<li>demandeur_adresse_num</li> |
|
80 |
<li>demandeur_adresse_pays</li> |
|
81 |
<li>demandeur_adresse_pays_raw</li> |
|
82 |
<li>demandeur_adresse_voie</li> |
|
83 |
<li>demandeur_civilite</li> |
|
84 |
<li>demandeur_civilite_raw</li> |
|
85 |
<li>demandeur_email</li> |
|
86 |
<li>demandeur_nom</li> |
|
87 |
<li>demandeur_prenoms</li> |
|
88 |
<li>demandeur_telephone</li> |
|
89 |
<li>nombre_exemplaire</li> |
|
90 |
<li>qualite_demandeur</li> |
|
91 |
<li>qualite_demandeur_autre</li> |
|
92 |
<li>qualite_demandeur_raw</li> |
|
93 |
<li>titulaire_mere_nom</li> |
|
94 |
<li>titulaire_mere_prenoms</li> |
|
95 |
<li>titulaire_naiss_date</li> |
|
96 |
<li>titulaire_naiss_departement</li> |
|
97 |
<li>titulaire_naiss_departement_raw</li> |
|
98 |
<li>titulaire_naiss_ville</li> |
|
99 |
<li>titulaire_naiss_ville_raw</li> |
|
100 |
<li>titulaire_nom</li> |
|
101 |
<li>titulaire_pere_nom</li> |
|
102 |
<li>titulaire_pere_prenoms</li> |
|
103 |
<li>titulaire_prenoms</li> |
|
104 |
</ul> |
|
105 |
</li> |
|
9 |
<a class="example-url" href="{{create}}">{{create}}</a> |
|
10 |
<ul class="params"> |
|
11 |
<li>ILE-LA PAYLOAD |
|
12 |
<div class="body-schemas"> |
|
13 |
<ul style="font-size:smaller; font-style:oblique"> |
|
14 |
<li>Extra |
|
15 |
<ul> |
|
16 |
<li>demand_type (ile-la, rco-la, aec-la) *</li> |
|
17 |
<li>code_insee *</li> |
|
18 |
</ul> |
|
19 |
</li> |
|
20 |
<li>Fields |
|
21 |
<ul> |
|
22 |
<li>nom_famille *</li> |
|
23 |
<li>nom_usage *</li> |
|
24 |
<li>prenoms *</li> |
|
25 |
<li>date_naissance *</li> |
|
26 |
<li>lieunaiss_localite *</li> |
|
27 |
<li>lieunaiss_division_territoriale *</li> |
|
28 |
<li>lieunaiss_code_postal *</li> |
|
29 |
<li>lieunaiss_pays (iso3a) *</li> |
|
30 |
<li>sexe (H/F) *</li> |
|
31 |
<li>nationalite (iso3a ie FRA) *</li> |
|
32 |
<li>adresse_num_voie *</li> |
|
33 |
<li>adresse_type_voie *</li> |
|
34 |
<li>adresse_nom_voie </li> |
|
35 |
<li>adresse_code_postal *</li> |
|
36 |
<li>adresse_localite *</li> |
|
37 |
<li>adresse_division_territoriale *</li> |
|
38 |
<li>contact_telephone (0650643793)</li> |
|
39 |
<li>contact_email (lucas@lucas.org)</li> |
|
40 |
<li>inscription_liste_type (p, ce, cm)*</li> |
|
41 |
<li>inscription_localite *</li> |
|
42 |
<li>inscription_division_territoriale *</li> |
|
43 |
<li>insription_code_insee *</li> |
|
44 |
<li>inscription_date *</li> |
|
45 |
<li>anterieur_situation (prem, cci)</li> |
|
46 |
<li>anterieur_consulat (consulat/amabassade)</li> |
|
47 |
<li>anterieur_consulat_pays</li> |
|
48 |
<li>anterieur_localite</li> |
|
49 |
<li>anterieur_division_territoriale</li> |
|
50 |
<li>anterieur_ue_localite</li> |
|
51 |
<li>anterieur_ue_division_territoriale</li> |
|
52 |
<li>anterieur_ue_localite_pays</li> |
|
53 |
<li>justificatif_identite</li> |
|
54 |
<li>justificatif_domicile</li> |
|
55 |
</ul> |
|
56 |
</li> |
|
57 |
</ul> |
|
58 |
</div> |
|
59 |
</li> |
|
60 |
<li>RCO-LA PAYLOAD</li> |
|
61 |
<li>AEC-LA PAYLOAD |
|
62 |
<div class="body-schemas"> |
|
63 |
<ul style="font-size:smaller; font-style:oblique"> |
|
64 |
<li>Extra |
|
65 |
<ul> |
|
66 |
<li>demand_type (aec-la)</li> |
|
67 |
<li>code_insee</li> |
|
68 |
<li>code_postal</li> |
|
69 |
<li>aec_type</li> |
|
70 |
<li>aec_type_raw</li> |
|
71 |
<li>ville</li> |
|
72 |
</ul> |
|
73 |
</li> |
|
74 |
<li>Fields |
|
75 |
<ul> |
|
76 |
<li>aec_nature</li> |
|
77 |
<li>aec_nature_raw</li> |
|
78 |
<li>date_acte</li> |
|
79 |
<li>demandeur_adresse_code_postal</li> |
|
80 |
<li>demandeur_adresse_complement</li> |
|
81 |
<li>demandeur_adresse_ville</li> |
|
82 |
<li>demandeur_adresse_num</li> |
|
83 |
<li>demandeur_adresse_pays</li> |
|
84 |
<li>demandeur_adresse_pays_raw</li> |
|
85 |
<li>demandeur_adresse_voie</li> |
|
86 |
<li>demandeur_civilite</li> |
|
87 |
<li>demandeur_civilite_raw</li> |
|
88 |
<li>demandeur_email</li> |
|
89 |
<li>demandeur_nom</li> |
|
90 |
<li>demandeur_prenoms</li> |
|
91 |
<li>demandeur_telephone</li> |
|
92 |
<li>nombre_exemplaire</li> |
|
93 |
<li>qualite_demandeur</li> |
|
94 |
<li>qualite_demandeur_autre</li> |
|
95 |
<li>qualite_demandeur_raw</li> |
|
96 |
<li>titulaire_mere_nom</li> |
|
97 |
<li>titulaire_mere_prenoms</li> |
|
98 |
<li>titulaire_naiss_date</li> |
|
99 |
<li>titulaire_naiss_departement</li> |
|
100 |
<li>titulaire_naiss_departement_raw</li> |
|
101 |
<li>titulaire_naiss_ville</li> |
|
102 |
<li>titulaire_naiss_ville_raw</li> |
|
103 |
<li>titulaire_nom</li> |
|
104 |
<li>titulaire_pere_nom</li> |
|
105 |
<li>titulaire_pere_prenoms</li> |
|
106 |
<li>titulaire_prenoms</li> |
|
107 |
</ul> |
|
108 |
</li> |
|
109 |
</ul> |
|
110 |
</div> |
|
111 |
</li> |
|
106 | 112 |
</ul> |
107 | 113 |
</li> |
108 |
<li> |
|
109 |
<h4>{%trans 'Get Demand Status'%}</h4>
|
|
114 |
<li class="get-method">
|
|
115 |
<span class="description">{%trans 'Get Demand Status'%}</span>
|
|
110 | 116 |
{% url "generic-endpoint" connector="mdel" slug=object.slug endpoint="status" as get_status %} |
111 |
<p><strong>GET</strong> <a href="{{get_status}}?demand_id=1-14-ILE-LA">{{get_status}}?demand_id=1-14-ILE-LA</a></p> |
|
117 |
<a class="example-url" href="{{get_status}}?demand_id=1-14-ILE-LA">{{get_status}}?demand_id=1-14-ILE-LA</a> |
|
118 |
<div> |
|
112 | 119 |
<samp> |
113 | 120 |
{ |
114 | 121 |
"data": { |
... | ... | |
119 | 126 |
"err": 0 |
120 | 127 |
} |
121 | 128 |
</samp> |
129 |
</div> |
|
122 | 130 |
</li> |
123 |
<li> |
|
124 |
<h4>{%trans 'Data Sources'%}</h4> |
|
131 |
</ul> |
|
132 |
<h4>{%trans 'Data Sources'%}</h4> |
|
133 |
<ul class="endpoints"> |
|
134 |
<li class="get-method"> |
|
125 | 135 |
{% url "generic-endpoint" connector="mdel" slug=object.slug endpoint="applicants" as get_applicants %} |
126 |
<p><strong>GET</strong> <a href="{{get_applicants}}?without=PersonneConcernee,Representant">{{get_applicants}}?without=PersonneConcernee,Representant</a></p> |
|
136 |
<a class="exaple-url" href="{{get_applicants}}?without=PersonneConcernee,Representant">{{get_applicants}}?without=PersonneConcernee,Representant</a> |
|
137 |
</li> |
|
138 |
<li class="get-method"> |
|
127 | 139 |
{% url "generic-endpoint" connector="mdel" slug=object.slug endpoint="certificates" as get_certificates %} |
128 |
<p><strong>GET</strong> <a href="{{get_certificates}}">{{get_certificates}}</a></p> |
|
140 |
<a class="example-url" href="{{get_certificates}}">{{get_certificates}}</a> |
|
141 |
</li> |
|
142 |
<li class="get-method"> |
|
129 | 143 |
{% url "generic-endpoint" connector="mdel" slug=object.slug endpoint="certificate-types" as get_certificates_type %} |
130 |
<p><strong>GET</strong> <a href="{{get_certificates_type}}">{{get_certificates_type}}</a></p>
|
|
144 |
<a class="example-url" href="{{get_certificates_type}}">{{get_certificates_type}}</a>
|
|
131 | 145 |
</li> |
132 | 146 |
</ul> |
133 | 147 |
{% endblock %} |
passerelle/apps/okina/templates/okina/okina_detail.html | ||
---|---|---|
14 | 14 | |
15 | 15 |
{% block endpoints %} |
16 | 16 |
<h4>{% trans 'General' %}</h4> |
17 |
<ul> |
|
18 |
<li>{% trans 'Cities:' %} <a href="cities/"
|
|
17 |
<ul class="endpoints">
|
|
18 |
<li class="get-method"><span class="description">{% trans 'Cities:' %}</span> <a class="example-url" href="cities/"
|
|
19 | 19 |
>{{ site_base_uri }}{{ object.get_absolute_url }}cities</a></li> |
20 |
<li>{% trans 'Classes:' %} <a href="classes/"
|
|
20 |
<li class="get-method"><span class="description">{% trans 'Classes:' %}</span><a class="example-url" href="classes/"
|
|
21 | 21 |
>{{ site_base_uri }}{{ object.get_absolute_url }}classes</a></li> |
22 |
<li>{% trans 'Institutions:' %}
|
|
23 |
<a href="institutions/" |
|
22 |
<li class="get-method"><span class="description">{% trans 'Institutions:' %}</span>
|
|
23 |
<a class="example-url" href="institutions/"
|
|
24 | 24 |
>{{ site_base_uri }}{{ object.get_absolute_url }}institutions</a></li> |
25 | 25 |
</ul> |
26 | 26 | |
27 |
<h4>{% trans 'Journeys' %}</h4> |
|
28 |
<ul> |
|
29 |
<li>{% trans 'Institutions accessible from a city:' %}
|
|
30 |
<a href="institutions/from-city/36005/" |
|
27 |
<h4><span class="description">{% trans 'Journeys' %}</h4>
|
|
28 |
<ul class="endpoints">
|
|
29 |
<li class="get-method"><span class="description">{% trans 'Institutions accessible from a city:' %}</span>
|
|
30 |
<a class="example-url" href="institutions/from-city/36005/"
|
|
31 | 31 |
>{{ site_base_uri }}{{ object.get_absolute_url }}institutions/from-city/<i>city-insee-code</i>/</a></li> |
32 | 32 | |
33 |
<li>{% trans 'Stop areas from a city to an institution:' %}
|
|
34 |
<a href="stop-areas/from-city/36005/to-institution/276/" |
|
33 |
<li class="get-method"><span class="description">{% trans 'Stop areas from a city to an institution:' %}</span>
|
|
34 |
<a class="example-url" href="stop-areas/from-city/36005/to-institution/276/"
|
|
35 | 35 |
>{{ site_base_uri }}{{ object.get_absolute_url }}stop-areas/from-city/<i>city-insee-code</i>/to-institution/<i>institution_id</i>/</a></li> |
36 | 36 | |
37 |
<li>{% trans 'Origin/Destinations:' %} <a href="origin-destinations/"
|
|
37 |
<li class="get-method"><span class="description">{% trans 'Origin/Destinations:' %}</span><a class="example-url" href="origin-destinations/"
|
|
38 | 38 |
>{{ site_base_uri }}{{ object.get_absolute_url }}origin-destinations</a></li> |
39 |
<li>{% trans 'Origin/Destinations to an institution:' %}
|
|
40 |
<a href="origin-destinations/to-institution/276/" |
|
39 |
<li class="get-method"><span class="description">{% trans 'Origin/Destinations to an institution:' %}</span>
|
|
40 |
<a class="example-url" href="origin-destinations/to-institution/276/"
|
|
41 | 41 |
>{{ site_base_uri }}{{ object.get_absolute_url }}origin-destinations/to-institution/<i>institution_id</i>/</a></li> |
42 |
<li>{% trans 'Origin/Destinations from a stop area to an institution:' %}
|
|
43 |
<a href="origin-destinations/from-stop-area/3282/to-institution/276/" |
|
42 |
<li class="get-method"><span class="description">{% trans 'Origin/Destinations from a stop area to an institution:' %}</span>
|
|
43 |
<a class="example-url" href="origin-destinations/from-stop-area/3282/to-institution/276/"
|
|
44 | 44 |
>{{ site_base_uri }}{{ object.get_absolute_url }}origin-destinations/from-stop-area/<i>stop_area_id</i>/to-institution/<i>institution_id</i>/</a></li> |
45 |
<li>{% trans 'Origin/Destinations from a city to an institution:' %}
|
|
46 |
<a href="origin-destinations/from-city/36005/to-institution/276/" |
|
45 |
<li class="get-method"><span class="description">{% trans 'Origin/Destinations from a city to an institution:' %}</span>
|
|
46 |
<a class="example-url" href="origin-destinations/from-city/36005/to-institution/276/"
|
|
47 | 47 |
>{{ site_base_uri }}{{ object.get_absolute_url }}origin-destinations/from-city/<i>city_insee_code</i>/to-institution/<i>institution_id</i></a></li> |
48 |
<li>{% trans 'Origin/Destinations from a city:' %}
|
|
49 |
<a href="origin-destinations/from-city/36005/" |
|
48 |
<li class="get-method"><span class="description">{% trans 'Origin/Destinations from a city:' %}</span>
|
|
49 |
<a class="example-url" href="origin-destinations/from-city/36005/"
|
|
50 | 50 |
>{{ site_base_uri }}{{ object.get_absolute_url }}origin-destinations/from-city/<i>city_insee_code</i>/</a></li> |
51 | 51 |
</ul> |
52 | 52 | |
53 |
<h4>{% trans 'Subscriptions' %}</h4> |
|
54 |
<ul> |
|
55 |
<li>{% trans 'Create a subscriber:' %}
|
|
56 |
POST <a href="subscriber/"
|
|
53 |
<h4><span class="description">{% trans 'Subscriptions' %}</h4>
|
|
54 |
<ul class="endpoints">
|
|
55 |
<li class="post-method"><span class="description">{% trans 'Create a subscriber:' %}</span>
|
|
56 |
<a class="example-url" href="subscriber/"
|
|
57 | 57 |
>{{ site_base_uri }}{{ object.get_absolute_url }}subscriber/</a> |
58 |
<br/>{% trans 'Same payload as for the Okina POST /b2b/subscribers endpoint' %}</li>
|
|
59 |
<li>{% trans 'Informations about a subscriber:' %}
|
|
60 |
<a href="subscriber/284/" |
|
58 |
<div class="body-schemas">{% trans 'Same payload as for the Okina POST /b2b/subscribers endpoint' %}</div></li>
|
|
59 |
<li class="get-method"><span class="description">{% trans 'Informations about a subscriber:' %}</span>
|
|
60 |
<a class="example-url" href="subscriber/284/"
|
|
61 | 61 |
>{{ site_base_uri }}{{ object.get_absolute_url }}subscriber/<i>id</i>/</a></li> |
62 |
<li>{% trans "Get subscriber's QR Code:" %}
|
|
63 |
<a href="subscriber/284/qrcode/" |
|
62 |
<li class="get-method"><span class="description">{% trans "Get subscriber's QR Code:" %}</span>
|
|
63 |
<a class="example-url" href="subscriber/284/qrcode/"
|
|
64 | 64 |
>{{ site_base_uri }}{{ object.get_absolute_url }}subscriber/<i>id</i>/qrcode/</a></li> |
65 |
<li>{% trans 'Create a subscription:' %}
|
|
66 |
POST <a href="subscription/"
|
|
65 |
<li class="post-method"><span class="description">{% trans 'Create a subscription:' %}</span>
|
|
66 |
<a class="example-url" href="subscription/"
|
|
67 | 67 |
>{{ site_base_uri }}{{ object.get_absolute_url }}subscription/</a> |
68 |
<br/>{% trans 'Same payload as for the Okina POST /b2b/subscriptions endpoint' %}</li>
|
|
69 |
<li>{% trans 'Informations about a subscription:' %}
|
|
70 |
<a href="subscription/283/" |
|
68 |
<div class="body-schemas">{% trans 'Same payload as for the Okina POST /b2b/subscriptions endpoint' %}</div></li>
|
|
69 |
<li class="get-method"><span class="description">{% trans 'Informations about a subscription:' %}</span>
|
|
70 |
<a class="example-url" href="subscription/283/"
|
|
71 | 71 |
>{{ site_base_uri }}{{ object.get_absolute_url }}subscription/<i>id</i>/</a></li> |
72 | 72 |
</ul> |
73 | 73 | |
74 | 74 | |
75 |
<h4>{% trans 'Topology' %}</h4> |
|
76 |
<ul> |
|
77 |
<li>{% trans 'Lines:' %} <a href="topology/lines/"
|
|
75 |
<h4><span class="description">{% trans 'Topology' %}</h4>
|
|
76 |
<ul class="endpoints">
|
|
77 |
<li class="get-method"><span class="description">{% trans 'Lines:' %}</span><a class="example-url" href="topology/lines/"
|
|
78 | 78 |
>{{ site_base_uri }}{{ object.get_absolute_url }}topology/lines/</a></li> |
79 |
<li>{% trans 'Networks:' %} <a href="topology/networks/"
|
|
79 |
<li class="get-method"><span class="description">{% trans 'Networks:' %}</span><a class="example-url" href="topology/networks/"
|
|
80 | 80 |
>{{ site_base_uri }}{{ object.get_absolute_url }}topology/networks/</a></li> |
81 |
<li>{% trans 'Vehicle journeys:' %} <a href="topology/vehicle-journeys/"
|
|
81 |
<li class="get-method"><span class="description">{% trans 'Vehicle journeys:' %}</span><a class="example-url" href="topology/vehicle-journeys/"
|
|
82 | 82 |
>{{ site_base_uri }}{{ object.get_absolute_url }}topology/vehicle-journeys/</a></li> |
83 | 83 |
</ul> |
84 | 84 |
passerelle/contrib/grandlyon_streetsections/templates/grandlyon_streetsections/grandlyonstreetsections_detail.html | ||
---|---|---|
2 | 2 |
{% load i18n passerelle %} |
3 | 3 | |
4 | 4 |
{% block endpoints %} |
5 |
<ul> |
|
6 |
<li> |
|
7 |
{% trans "Details on a section:" %}
|
|
5 |
<ul class="endpoints">
|
|
6 |
<li class="get-method">
|
|
7 |
<span class="description">{% trans "Details on a section:" %}</span>
|
|
8 | 8 |
{% url "generic-endpoint" connector="grandlyon-streetsections" slug=object.slug endpoint="section_info" as endpoint_path %} |
9 |
<a href="{{endpoint_path}}?streetname=Boulevard du Raquin&streetnumber=12&commune=Chassieu" |
|
9 |
<a class="example-url" href="{{endpoint_path}}?streetname=Boulevard du Raquin&streetnumber=12&commune=Chassieu"
|
|
10 | 10 |
>{{endpoint_path}}?streetname=Boulevard du Raquin&streetnumber=12&commune=Chassieu</a> |
11 | 11 |
<pre> |
12 | 12 |
{ |
passerelle/contrib/greco/templates/greco/greco_detail.html | ||
---|---|---|
6 | 6 |
{% endblock %} |
7 | 7 | |
8 | 8 |
{% block endpoints %} |
9 |
<ul> |
|
10 |
<li> |
|
9 |
<ul class="endpoints">
|
|
10 |
<li class="get-method">
|
|
11 | 11 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="ping" as ping %} |
12 |
GET <a href="{{ ping }}">{{ ping }}</a>
|
|
12 |
<a class="example-url" href="{{ ping }}">{{ ping }}</a>
|
|
13 | 13 |
<br /> |
14 | 14 |
{% trans 'Response:' %} <samp> |
15 | 15 |
{"data": "…[ping]", "err": 0} |
16 | 16 |
</samp> |
17 | 17 |
</li> |
18 |
<li> |
|
18 |
<li class="post-method">
|
|
19 | 19 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="create" as create %} |
20 |
POST <a href="{{ create }}">{{ create }}</a>
|
|
20 |
<a class="example-url" href="{{ create }}">{{ create }}</a>
|
|
21 | 21 |
<br /> |
22 |
{% trans 'JSON payload:' %} <samp> |
|
22 |
<span class="params-title">{% trans 'JSON payload:' %}</span> |
|
23 |
<div class="body-schemas"><samp> |
|
23 | 24 |
{ {% for field in object.creation_fields %}"{{ field }}": "…", {% endfor %} |
24 | 25 |
"fichier1": {"filename": "….…", "content_type": "…/…", "content": "…base64…" }, |
25 | 26 |
"fichier2": { … } |
26 | 27 |
} |
27 |
</samp> |
|
28 |
</samp> |
|
29 |
</div> |
|
28 | 30 |
<br /> |
29 | 31 |
{% trans 'Response:' %} <samp> |
30 | 32 |
{"data": {"application": "…", "etat": "1 - Créée", "iddemande": "…", "idgreco": "…", "motifsrejet": null}, "err": 0} |
31 | 33 |
</samp> |
32 | 34 |
</li> |
33 |
<li> |
|
35 |
<li class="get-method">
|
|
34 | 36 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="status" as status %} |
35 |
GET <a href="{{ status }}?idgreco=…&iddemande=…">{{ status }}?idgreco=…[&iddemande=…]</a>
|
|
37 |
<a class="example-url" href="{{ status }}?idgreco=…&iddemande=…">{{ status }}?idgreco=…[&iddemande=…]</a>
|
|
36 | 38 |
<br /> |
37 | 39 |
{% trans 'Response:' %} <samp> |
38 | 40 |
{"data": {"commentaireReponse": null, "comptesRendus": null, "dateResolutionEffective": null, "dateResolutionPrevue": "YYYY-MM-DD", |
... | ... | |
40 | 42 |
"err": 0} |
41 | 43 |
</samp> |
42 | 44 |
</li> |
43 |
<li> |
|
45 |
<li class="get-method">
|
|
44 | 46 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="answer" as answer %} |
45 |
GET <a href="{{ answer }}?idgreco=…&iddemande=…">{{ answer }}?idgreco=…&iddemande=…&code=…</a>
|
|
47 |
<a class="example-url" href="{{ answer }}?idgreco=…&iddemande=…">{{ answer }}?idgreco=…&iddemande=…&code=…</a>
|
|
46 | 48 |
<br /> |
47 | 49 |
{% trans 'Response:' %} <samp> |
48 | 50 |
{"data": {"etat": null, "idgreco": "…", "iddemande": "…", "motifsrejet": null, "message": "…"}, |
49 | 51 |
"err": 0} |
50 | 52 |
</samp> |
51 | 53 |
</li> |
52 |
<li> |
|
54 |
<li class="post-method">
|
|
53 | 55 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="add-information" as addinfo %} |
54 |
POST <a href="{{ addinfo }}">{{ addinfo }}</a>
|
|
56 |
<a class="example-url" href="{{ addinfo }}">{{ addinfo }}</a>
|
|
55 | 57 |
<br /> |
56 | 58 |
{% trans 'JSON payload:' %} <samp> |
57 | 59 |
{"idgreco": "…", "iddemande": "…", "information": "…"} |
... | ... | |
61 | 63 |
{"data": {"iddemande": "…", "idgreco": "…", "motifsrejet": null}, "err": 0} |
62 | 64 |
</samp> |
63 | 65 |
</li> |
64 |
<li> |
|
66 |
<li class="post-method">
|
|
65 | 67 |
{% url "generic-endpoint" connector="greco" slug=object.slug endpoint="update" as update %} |
66 |
POST <a href="{{ update }}">{{ update }}</a>
|
|
68 |
<a class="example-url" href="{{ update }}">{{ update }}</a>
|
|
67 | 69 |
<br /> |
68 |
{% trans 'JSON payload:' %} <samp> |
|
70 |
<span class="params-title">{% trans 'JSON payload:' %}</span> |
|
71 |
<div class="body-schemas"><samp> |
|
69 | 72 |
{"idgreco": "…", "iddemande": "…", "comment": "…"} |
70 |
</samp> |
|
73 |
</samp></div>
|
|
71 | 74 |
<br /> |
72 | 75 |
{% trans 'Response:' %} <samp> |
73 | 76 |
{"data": {"iddemande": "…", "idgreco": "…", "motifsrejet": null}, "err": 0} |
passerelle/contrib/iparapheur/templates/iparapheur/iparapheur_detail.html | ||
---|---|---|
5 | 5 |
{% endblock %} |
6 | 6 | |
7 | 7 |
{% block endpoints %} |
8 |
<ul> |
|
8 |
<ul class="endpoints">
|
|
9 | 9 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='wsdl' as wsdl_url %} |
10 |
<li>{% trans 'Download WSDL file:' %}
|
|
11 |
<a href="{{ wsdl_url }}">{{ site_base_uri }}{{ wsdl_url }}</a>[?debug] |
|
10 |
<li class="get-method"><span class="description">{% trans 'Download WSDL file:' %}</span>
|
|
11 |
<a class="example-url" href="{{ wsdl_url }}">{{ site_base_uri }}{{ wsdl_url }}</a>[?debug]
|
|
12 | 12 |
</li> |
13 | 13 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='ping' as ping_url %} |
14 |
<li>{% trans 'Check WS availability:' %}
|
|
15 |
<a href="{{ ping_url }}">{{ site_base_uri }}{{ ping_url }}</a>[?debug] |
|
14 |
<li class="get-method"><span class="description">{% trans 'Check WS availability:' %}</span>
|
|
15 |
<a class="example-url" href="{{ ping_url }}">{{ site_base_uri }}{{ ping_url }}</a>[?debug]
|
|
16 | 16 |
</li> |
17 | 17 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='types' as types_url %} |
18 |
<li>{% trans 'Get technical types:' %}
|
|
19 |
<a href="{{ types_url }}">{{ site_base_uri }}{{ types_url }}</a> |
|
18 |
<li class="get-method"><span class="description">{% trans 'Get technical types:' %}</span>
|
|
19 |
<a class="example-url" href="{{ types_url }}">{{ site_base_uri }}{{ types_url }}</a>
|
|
20 | 20 |
</li> |
21 | 21 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='subtypes' as subtypes_url %} |
22 |
<li>{% trans 'Get sub types of a given technical type:' %}
|
|
23 |
<a href="{{ subtypes_url }}">{{ site_base_uri }}{{ subtypes_url }}</a>[?type=type]</li> |
|
24 |
<li> |
|
22 |
<li class="get-method"><span class="description">{% trans 'Get sub types of a given technical type:' %}</span>
|
|
23 |
<a class="example-url" href="{{ subtypes_url }}">{{ site_base_uri }}{{ subtypes_url }}</a>[?type=type]</li>
|
|
24 |
<li class="get-method">
|
|
25 | 25 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='files' as files_url %} |
26 |
{% trans 'List files by status:' %}
|
|
27 |
<a href="{{ files_url }}">{{ site_base_uri }}{{ files_url }}</a>[?status=status] |
|
26 |
<span class="description">{% trans 'List files by status:' %}</span>
|
|
27 |
<a class="example-url" href="{{ files_url }}">{{ site_base_uri }}{{ files_url }}</a>[?status=status]
|
|
28 | 28 |
</li> |
29 |
<li> |
|
29 |
<li class="post-method">
|
|
30 | 30 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='create-file' as create_file_url %} |
31 |
{% trans 'Create file:' %}
|
|
32 |
<a href="{{ create_file_url }}">{{ site_base_uri }}{{ create_file_url }}</a> [POST]
|
|
33 |
<p>{% trans "In the payload" %} |
|
31 |
<span class="description">{% trans 'Create file:' %}</span>
|
|
32 |
<a class="example-url" href="{{ create_file_url }}">{{ site_base_uri }}{{ create_file_url }}</a>
|
|
33 |
<p><span class="description">{% trans "In the payload" %}
|
|
34 | 34 |
<ul> |
35 |
<li><em>type</em> - {% trans "file type" %}</li> |
|
36 |
<li><em>subtype</em> - {% trans "file subtype" %}</li> |
|
37 |
<li><em>title</em> - {% trans "file title" %}</li> |
|
38 |
<li><em>visibility</em> - {% trans "file visibility" %}</li> |
|
39 |
<li><em>data</em> - {% trans "base64 encoded data" %}</li> |
|
40 |
<li><em>content_type</em> - {% trans "file mime type (optional)" %}</li> |
|
41 |
<li><em>email</em> - {% trans "optional issuer's email" %}</li> |
|
35 |
<li><em>type</em> - <span class="description">{% trans "file type" %}</li>
|
|
36 |
<li><em>subtype</em> - <span class="description">{% trans "file subtype" %}</li>
|
|
37 |
<li><em>title</em> - <span class="description">{% trans "file title" %}</li>
|
|
38 |
<li><em>visibility</em> - <span class="description">{% trans "file visibility" %}</li>
|
|
39 |
<li><em>data</em> - <span class="description">{% trans "base64 encoded data" %}</li>
|
|
40 |
<li><em>content_type</em> - <span class="description">{% trans "file mime type (optional)" %}</li>
|
|
41 |
<li><em>email</em> - <span class="description">{% trans "optional issuer's email" %}</li>
|
|
42 | 42 |
</ul> |
43 | 43 |
</p> |
44 | 44 |
</li> |
45 |
<li> |
|
45 |
<li class="get-method">
|
|
46 | 46 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='get-file' rest="5e6fc120-f2f7-4dfa-91d0-44414205a2b9" as get_file_url %} |
47 |
{% trans 'Get file:' %}
|
|
48 |
<a href="{{ get_file_url }}">{{ site_base_uri }}{{ get_file_url }}</a><br /> |
|
47 |
<span class="description">{% trans 'Get file:' %}</span>
|
|
48 |
<a class="example-url" href="{{ get_file_url }}">{{ site_base_uri }}{{ get_file_url }}</a><br />
|
|
49 | 49 |
<em>5e6fc120-f2f7-4dfa-91d0-44414205a2b9</em> - file id |
50 | 50 |
</li> |
51 |
<li> |
|
51 |
<li class="get-method">
|
|
52 | 52 |
{% url 'generic-endpoint' connector='iparapheur' slug=object.slug endpoint='get-file-status' rest="5e6fc120-f2f7-4dfa-91d0-44414205a2b9" as get_file_status_url %} |
53 |
{% trans 'Get file status:' %}
|
|
54 |
<a href="{{ get_file_status_url }}">{{ site_base_uri }}{{ get_file_status_url }}</a><br /> |
|
53 |
<span class="description">{% trans 'Get file status:' %}</span>
|
|
54 |
<a class="example-url" href="{{ get_file_status_url }}">{{ site_base_uri }}{{ get_file_status_url }}</a><br />
|
|
55 | 55 |
<em>5e6fc120-f2f7-4dfa-91d0-44414205a2b9</em> - file id |
56 | 56 |
</li> |
57 | 57 |
</ul> |
passerelle/contrib/iws/templates/iws/iwsconnector_detail.html | ||
---|---|---|
3 | 3 | |
4 | 4 |
{% block extra-sections %} |
5 | 5 |
<div class="section"> |
6 |
<ul> |
|
7 |
<li> |
|
8 |
<h4>{% trans 'Book date' %}</h4> |
|
6 |
<div> |
|
7 |
<ul class="endpoints"> |
|
8 |
<li class="post-method"> |
|
9 |
<span class="description">{% trans 'Book date' %}</span> |
|
9 | 10 |
{% url "generic-endpoint" connector="iws" slug=object.slug endpoint="bookdate" as bookdate %} |
10 |
<p> <strong>POST</strong> <a href="{{bookdate}}">{{bookdate}}</a></p> |
|
11 |
<pre> |
|
12 |
data_send = { |
|
11 |
<a class="example-url" href="{{bookdate}}">{{bookdate}}</a> |
|
12 |
<div class="body-schemas"> |
|
13 |
<span class="params-title">{% trans "Request body" %}</span> |
|
14 |
<pre> |
|
15 |
{ |
|
13 | 16 |
'firstname': 'jon' |
14 | 17 |
'lastname': 'doe' |
15 | 18 |
'email': 'jon.doe@jondoe.com' |
... | ... | |
17 | 20 |
'tel_number': '0102030405', |
18 | 21 |
'date': '26/10/2018', |
19 | 22 |
'token': 'XBNDNFT34' |
20 |
} |
|
21 |
</pre>
|
|
23 |
}</pre>
|
|
24 |
</div>
|
|
22 | 25 |
</li> |
23 | 26 |
</ul> |
27 |
</div> |
|
24 | 28 |
</div> |
25 | 29 |
{% endblock %} |
26 | 30 |
passerelle/contrib/nancypoll/templates/nancypoll/nancypoll_detail.html | ||
---|---|---|
31 | 31 |
{% endblock %} |
32 | 32 | |
33 | 33 |
{% block endpoints %} |
34 |
<ul> |
|
35 |
<li> |
|
36 |
{%trans "Request : "%}
|
|
34 |
<ul class="endpoints">
|
|
35 |
<li class="get-method">
|
|
36 |
<span class="description">{% trans "Request : "%}</span>
|
|
37 | 37 |
{% url "generic-endpoint" connector="nancypoll" slug=object.slug endpoint="data" as get_poll %} |
38 |
<a href="{{get_poll}}?street_no=37&street_name=Marechal Juin">{{get_poll}}?street_no=37&street_name=Marechal Juin</a> |
|
39 |
</li> |
|
40 |
<li> |
|
41 |
{%trans "Response : "%} |
|
38 |
<a class="example-url" href="{{get_poll}}?street_no=37&street_name=Marechal Juin">{{get_poll}}?street_no=37&street_name=Marechal Juin</a> |
|
39 |
<br /> |
|
40 |
{% trans "Response : "%} |
|
42 | 41 |
<samp>{ |
43 | 42 |
"data": [{ |
44 | 43 |
"text": "GYMNASE BOURGUIGNON", |
passerelle/contrib/teamnet_axel/templates/teamnet_axel/teamnetaxel_detail.html | ||
---|---|---|
3 | 3 | |
4 | 4 |
{% block endpoints %} |
5 | 5 |
<h4>{% trans "Family related" %}</h4> |
6 |
<ul> |
|
6 |
<ul class="endpoints">
|
|
7 | 7 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="ping" as endpoint_ping %} |
8 |
<li>{% trans 'Check WSDL availability:' %} <a href="{{ endpoint_ping }}">{{ endpoint_ping }}</a>[?debug]</li>
|
|
8 |
<li class="get-method"><span class="description">{% trans 'Check WSDL availability:' %}</span> <a class="example-url" href="{{ endpoint_ping }}">{{ endpoint_ping }}</a>[?debug]</li>
|
|
9 | 9 | |
10 | 10 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="auth" as endpoint_auth %} |
11 |
<li>{% trans 'Authentication:' %} <a href="{{ endpoint_auth }}?login=foo&password=bar">{{ endpoint_auth }}?login=foo&password=bar</a></li>
|
|
11 |
<li class="get-method"><span class="description">{% trans 'Authentication:' %}</span> <a class="example-url" href="{{ endpoint_auth }}?login=foo&password=bar">{{ endpoint_auth }}?login=foo&password=bar</a></li>
|
|
12 | 12 | |
13 | 13 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="family" rest="link/" as endpoint_link %} |
14 |
<li>{% trans 'Link:' %} <a href="{{ endpoint_link }}?NameID=...&login=foo&password=bar">{{ endpoint_link }}?NameID=...&login=foo&password=bar</a></li>
|
|
14 |
<li class="get-method"><span class="description">{% trans 'Link:' %}</span> <a class="example-url" href="{{ endpoint_link }}?NameID=...&login=foo&password=bar">{{ endpoint_link }}?NameID=...&login=foo&password=bar</a></li>
|
|
15 | 15 | |
16 | 16 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="family" rest="unlink/" as endpoint_unlink %} |
17 |
<li>{% trans 'Unlink:' %} <a href="{{ endpoint_unlink }}?NameID=...">{{ endpoint_unlink }}?NameID=...</a></li>
|
|
17 |
<li class="get-method"><span class="description">{% trans 'Unlink:' %}</span> <a class="example-url" href="{{ endpoint_unlink }}?NameID=...">{{ endpoint_unlink }}?NameID=...</a></li>
|
|
18 | 18 | |
19 | 19 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="family" rest="" as endpoint_family %} |
20 |
<li>{% trans 'Get all family informations:' %} <a href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
20 |
<li class="get-method"><span class="description">{% trans 'Get all family informations:' %}</span> <a class="example-url" href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
21 | 21 | |
22 | 22 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="family" rest="adults/" as endpoint_family %} |
23 |
<li>{% trans 'Get family adults informations:' %} <a href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
23 |
<li class="get-method"><span class="description">{% trans 'Get family adults informations:' %}</span> <a class="example-url" href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
24 | 24 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="family" rest="children/" as endpoint_family %} |
25 |
<li>{% trans 'Get family children informations:' %} <a href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
25 |
<li class="get-method"><span class="description">{% trans 'Get family children informations:' %}</span> <a class="example-url" href="{{ endpoint_family }}?NameID">{{ endpoint_family }}?NameID=...</a></li>
|
|
26 | 26 |
</ul> |
27 | 27 | |
28 | 28 |
<h4>{% trans "Invoices related" %}</h4> |
29 |
<ul> |
|
30 |
<li>{% trans 'Get invoice history list:' %}
|
|
29 |
<ul class="endpoints">
|
|
30 |
<li class="get-method"><span class="description">{% trans 'Get invoice history list:' %}</span>
|
|
31 | 31 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="regie" rest="42/invoices/history/" as invoices_history_url %} |
32 |
<a href="{{ invoices_history_url }}?NameID"> {{ invoices_history_url }}?NameID=...</a> |
|
33 |
<em>42</em> {% trans 'is regie identifier' %} |
|
32 |
<a class="example-url" href="{{ invoices_history_url }}?NameID"> {{ invoices_history_url }}?NameID=...</a>
|
|
33 |
<em>42</em> <span class="description">{% trans 'is regie identifier' %}
|
|
34 | 34 |
</li> |
35 | 35 | |
36 |
<li>{% trans 'Get invoice list:' %}
|
|
36 |
<li class="get-method"><span class="description">{% trans 'Get invoice list:' %}</span>
|
|
37 | 37 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="regie" rest="42/invoices/" as invoices_url %} |
38 |
<a href="{{ invoices_url }}?NameID"> {{ invoices_url }}?NameID=... </a> |
|
39 |
<em>42</em> {% trans 'is regie identifier' %} |
|
38 |
<a class="example-url" href="{{ invoices_url }}?NameID"> {{ invoices_url }}?NameID=... </a>
|
|
39 |
<em>42</em> <span class="description">{% trans 'is regie identifier' %}
|
|
40 | 40 |
</li> |
41 | 41 | |
42 |
<li>{% trans 'Show invoice details:' %}
|
|
42 |
<li class="get-method"><span class="description">{% trans 'Show invoice details:' %}</span>
|
|
43 | 43 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="regie" rest="42/invoices/2345-20150916/" as invoice_details_url %} |
44 |
<a href="{{ invoice_details_url }}"> {{ site_base_uri }}{{ invoice_details_url }} </a> |
|
45 |
<em>42</em> {% trans 'is regie identifier' %}, |
|
46 |
<em>2345</em> {% trans 'is family identifier' %}, |
|
47 |
<em>20150916</em> {% trans 'is invoice identifier' %} |
|
44 |
<a class="example-url" href="{{ invoice_details_url }}"> {{ site_base_uri }}{{ invoice_details_url }} </a>
|
|
45 |
<em>42</em> <span class="description">{% trans 'is regie identifier' %},
|
|
46 |
<em>2345</em> <span class="description">{% trans 'is family identifier' %},
|
|
47 |
<em>20150916</em> <span class="description">{% trans 'is invoice identifier' %}
|
|
48 | 48 |
</li> |
49 | 49 | |
50 |
<li>{% trans 'Get invoice pdf:' %}
|
|
50 |
<li class="get-method"><span class="description">{% trans 'Get invoice pdf:' %}</span>
|
|
51 | 51 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="regie" rest="42/invoices/2345-20150916/pdf/" as invoice_download_url %} |
52 |
<a href="{{ invoice_download_url }}"> {{ site_base_uri }}{{ invoice_download_url }} </a> |
|
52 |
<a class="example-url" href="{{ invoice_download_url }}"> {{ site_base_uri }}{{ invoice_download_url }} </a>
|
|
53 | 53 |
</li> |
54 | 54 | |
55 |
<li>{% trans 'Pay invoice:' %}
|
|
55 |
<li class="post-method"><span class="description">{% trans 'Pay invoice:' %}</span>
|
|
56 | 56 |
{% url "generic-endpoint" connector="teamnet-axel" slug=object.slug endpoint="regie" rest="42/invoices/2345-20150916/pay/" as payment_url %} |
57 |
<a href="{{ payment_url }}"> {{ site_base_uri }}{{ payment_url }}?NameID=... </a> |
|
57 |
<a class="example-url" href="{{ payment_url }}"> {{ site_base_uri }}{{ payment_url }}?NameID=... </a>
|
|
58 | 58 |
</li> |
59 | 59 |
</ul> |
60 | 60 |
{% endblock %} |
61 |
- |