Changeset View
Changeset View
Standalone View
Standalone View
swh/web/api/templates/api-endpoints.html
Show All 30 Lines | <div class="swh-api-1-doc"> | ||||
<p> | <p> | ||||
Endpoints marked "available" are considered stable for the current version | Endpoints marked "available" are considered stable for the current version | ||||
of the API; endpoints marked "upcoming" are work in progress that will be | of the API; endpoints marked "upcoming" are work in progress that will be | ||||
stabilized in the near future. | stabilized in the near future. | ||||
</p> | </p> | ||||
</div> | </div> | ||||
<div> | |||||
<ul class="list-inline"> | |||||
{% for category, _ in doc_routes %} | |||||
<li class="list-inline-item"> | |||||
<a href="#{{ category | slugify }}">{{ category }}</a> | |||||
</li> | |||||
{% endfor %} | |||||
</ul> | |||||
</div> | |||||
{% for category, routes in doc_routes %} | {% for category, routes in doc_routes %} | ||||
<h2>{{ category }}</h2> | <h2 id="{{ category | slugify }}">{{ category }}</h2> | ||||
<table class="table table-striped search-res swh-table" width="100%"> | <table class="table table-striped search-res swh-table" width="100%"> | ||||
<col width="200"> | <col width="320"> | ||||
<thead class="thead-default"> | <thead class="thead-default"> | ||||
<th>Endpoint</th> | <th>Endpoint</th> | ||||
<th class="d-none d-sm-table-cell">Description</th> | <th class="d-none d-sm-table-cell">Description</th> | ||||
</thead> | </thead> | ||||
<tbody> | <tbody> | ||||
{% for doc in routes %} | {% for doc in routes %} | ||||
<tr class="swh-api-1-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-1-doc-route-{{ tag }} {% endfor %}"> | <tr class="swh-api-1-doc-route swh-tr-hover-highlight {% for tag in doc.tags %} swh-api-1-doc-route-{{ tag }} {% endfor %}"> | ||||
{% if "upcoming" in doc.tags %} | {% if "upcoming" in doc.tags %} | ||||
Show All 27 Lines |