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

{% block description %}
  <p>
    {%trans "CSV Columns keyname : "%}
    <ul>
      <li>Column 0: street_start_number</li>
      <li>Column 1: street_end_number</li>
      <li>Column 2: </li>
      <li>Column 3: </li>
      <li>Column 4: street_side </li>
      <li>Column 5: </li>
      <li>Column 6: </li>
      <li>Column 7: </li>
      <li>Column 8: code</li>
      <li>Column 9: id</li>
      <li>Column 10: text</li>
      <li>Column 11: address</li>
      <li>Column 11: </li>
      <li>Column 12: </li>
      <li>Column 13: street_name</li>
      <li>Column 14:  </li>
      <li>Column 15: canton </li>
      <li>Column 16:  </li>
      <li>Column 17:  </li>
      <li>Column 18:  </li>
    </ul>
  </p>

{% endblock %}

{% block endpoints %}
  <ul class="endpoints">
    <li class="get-method">
      <div class="description"><span class="description--label">{% trans "Request : "%}</span>
        {% url "generic-endpoint" connector="nancypoll" slug=object.slug endpoint="data" as get_poll %}
        <a class="example-url" href="{{get_poll}}?street_no=37&street_name=Marechal Juin">{{get_poll}}?street_no=37&street_name=Marechal Juin</a>
        <br />
        {% trans "Response : "%}
        <samp>{
          "data": [{
          "text": "GYMNASE BOURGUIGNON",
          "canton": "NANCY  3",
          "id": "18",
          "address": "5 RUE DE TURINAZ"
          }]
          }
        </samp>
      </div>
    </li>
  </ul>
{% endblock %}
