Blob Blame Raw
{% extends "master.html" %}

{% block title %} API | pagure {% endblock %}

{% set tag = "index" %}

{% block content %}
<div class="p-t-2 api">
  <div class="container">
    <header>
        <h2 class="repo-name m-b-0">
            <span class="fa fa-th"></span>
            &nbsp; Pagure API Reference
        </h2>
        <div class="m-t-0">
          This documentation describes the Pagure API v{{ version[0] }}
          revision {{ version[1] }}.
        </div>
        <div class="projectinfo m-t-1">
        </div>
    </header>
    <div class="row">
      <div class="col-md-10">

        {{ api_doc |replace('h1', 'h2') }}

        <h1>List of the API endpoints:</h1>

        <h2>
            Projects
            <a name="projects" title="Permalink to this headline" href="#projects">
              <span class="fa fa-link"></span>
            </a>
        </h2>
        <div class="accordion">
        {% for html in projects %}
        {{ html | InsertDiv | safe }}
        {% endfor %}
        </div>

        {% if issues %}
        <h2>
            Issues
            <a name="users" title="Permalink to this headline" href="#issues">
              <span class="fa fa-link"></span>
            </a>
        </h2>
        <div class="accordion">
        {% for html in issues %}
        {{ html | InsertDiv | safe }}
        {% endfor %}
        </div>
        {% endif %}

        <h2>
            Pull-requests
            <a name="users"title="Permalink to this headline" href="#pull-requests">
              <span class="fa fa-link"></span>
            </a>
        </h2>
        <div class="accordion">
        {% for html in requests %}
        {{ html | InsertDiv | safe }}
        {% endfor %}
        </div>

        <h2>
            Users
            <a name="users" title="Permalink to this headline" href="#users">
              <span class="fa fa-link"></span>
            </a>
        </h2>
        <div class="accordion">
        {% for html in users %}
        {{ html | InsertDiv | safe }}
        {% endfor %}
        </div>

        <h2>
            Groups
            <a name="groups" title="Permalink to this headline" href="#groups">
              <span class="fa fa-link"></span>
            </a>
        </h2>
        <div class="accordion">
        {% for html in groups %}
        {{ html | InsertDiv | safe }}
        {% endfor %}
        </div>

        {% if config.get('PAGURE_CI_SERVICES') %}
        <h2>
            Continous Integration Services
            <a name="ci" title="Permalink to this headline" href="#ci">
              <span class="fa fa-link"></span>
            </a>
        </h2>

        <div class="accordion">
        {% for html in ci %}
        {{ html | InsertDiv |safe }}
        {% endfor %}
        {% endif %}

        <h2>
            Extras
            <a name="extras" title="Permalink to this headline" href="#extras">
              <span class="fa fa-link"></span>
            </a>
        </h2>

        <div class="accordion">
        {% for html in extras %}
        {{ html | InsertDiv |safe }}
        {% endfor %}
        </div>

      </div>
    </div>
  </div>
</div>
{% endblock %}