Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add some clarifications to API for exercises

Roland Geider5d1605e57478
diff --git a/wger/software/templates/api.html b/wger/software/templates/api.html
index 74fa1d534..88c818008 100644
--- a/wger/software/templates/api.html
+++ b/wger/software/templates/api.html
@@ -170,6 +170,18 @@ it in the header, see the link on the sidebar for details.</p>
file upload won't work.
</p>
+<h4>Exercises</h4>
+<p>
+ When accessing exercises, consider that by default <em>all</em> exercises are
+ returned, including those submitted by users but not yed approved. You will
+ very probably want to add a <code>&status=2</code> to your URL to only get the
+ ones already added to the database.
+</p>
+<p>
+ Also note that, at the moment, to actually retrieve all the details for an exercise
+ you will need to fire up different queries for the images, comments, etc.
+</p>
+
<h3>Special endpoints</h3>
<p>