Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix formatting in REST API documentation

Roland Geider8c66881c84f1
diff --git a/wger/software/templates/api.html b/wger/software/templates/api.html
index ed7322509..8ef90cbfc 100644
--- a/wger/software/templates/api.html
+++ b/wger/software/templates/api.html
@@ -22,7 +22,7 @@ it in the header, see the link on the sidebar for details.</p>
<div class="col-xs-6">
<h4>Public endpoints</h4>
<ul>
- <li>daysofweek</em></li>
+ <li>daysofweek</li>
<li>equipment</li>
<li>exercise</li>
<li>exercisecategory</li>
@@ -79,7 +79,12 @@ it in the header, see the link on the sidebar for details.</p>
<li>
Set the format <strong>directly in the URL</strong>:
<ul>
- <li><code>/api/v2/&lt;endpoint&gt;/.json</code></li>
+ <li>
+ <code>/api/v2/&lt;endpoint&gt;/.json</code>
+ </li>
+ <li>
+ <code>/api/v2/&lt;endpoint&gt;/?format=json</code>
+ </li>
<li>
<code>/api/v2/&lt;endpoint&gt;/.api</code> - browsable HTML view
</li>
@@ -170,10 +175,8 @@ it in the header, see the link on the sidebar for details.</p>
<p>
The following endpoints provide additional information, comfort functions, etc.:
</p>
-<div class="row">
- <div class="col-md-1">
- <code>api/v2/workout/&lt;id&gt;/canonical_representation/</code>
- </div>
+<div style="margin-top: 1em;">
+ <code>api/v2/workout/&lt;id&gt;/canonical_representation/</code>
</div>
<div class="row">
<div class="col-md-offset-1 col-md-10">
@@ -185,10 +188,8 @@ it in the header, see the link on the sidebar for details.</p>
</div>
-<div class="row" style="margin-top: 1em;">
- <div class="col-md-1">
- <code>api/v2/exerciseimage/&lt;id&gt;/thumbnails/</code>
- </div>
+<div style="margin-top: 1em;">
+ <code>api/v2/exerciseimage/&lt;id&gt;/thumbnails/</code>
</div>
<div class="row">
<div class="col-md-offset-1 col-md-10">
@@ -200,12 +201,10 @@ it in the header, see the link on the sidebar for details.</p>
</div>
-<div class="row" style="margin-top: 1em;">
- <div class="col-md-1">
- <code>api/v2/nutritionplan/&lt;id&gt;/nutritional_values/</code><br>
- <code>api/v2/meal/&lt;id&gt;/nutritional_values/</code><br>
- <code>api/v2/mealitem/&lt;id&gt;/nutritional_values/</code>
- </div>
+<div style="margin-top: 1em;">
+ <code>api/v2/nutritionplan/&lt;id&gt;/nutritional_values/</code><br>
+ <code>api/v2/meal/&lt;id&gt;/nutritional_values/</code><br>
+ <code>api/v2/mealitem/&lt;id&gt;/nutritional_values/</code>
</div>
<div class="row">
<div class="col-md-offset-1 col-md-10">