Self hosted FLOSS fitness/workout, nutrition and weight tracker
Keep search engines away from the REST API
Roland Geiderc9ba4c1ed942
diff --git a/wger/manager/templates/user/api_key.html b/wger/manager/templates/user/api_key.htmlindex 41888322a..87929506e 100644--- a/wger/manager/templates/user/api_key.html+++ b/wger/manager/templates/user/api_key.html@@ -9,7 +9,7 @@{% block content %}<p>{% blocktrans %}Generate an API key if you want to interact with wger via-the <a href="/api/v1/?format=json">REST api</a> it provides (for public resources+the <a href="/api/v1/?format=json" rel="nofollow">REST api</a> it provides (for public resourcessuch as the exercises or ingredients, you don't need to provide anything). Youmust pass this information together with your username either in the header orin the request as GET parameters. For example:{% endblocktrans %}diff --git a/wger/software/templates/api.html b/wger/software/templates/api.htmlindex 0347e84f5..d4610576f 100644--- a/wger/software/templates/api.html+++ b/wger/software/templates/api.html@@ -8,7 +8,7 @@{% block content %}<p>{% blocktrans %}wger Workout Manager provides a full REST API to all database-objects:{% endblocktrans %} <a href="/api/v1/?format=json">/api/v1/</a>+objects:{% endblocktrans %} <a href="/api/v1/?format=json" rel="nofollow">/api/v1/</a></p><p>{% blocktrans %}Public endpoints, such as the list of exercises or the@@ -81,6 +81,6 @@ of foobar. Alternatively you can just specify the IDs you need or provide an off<a href="https://groups.google.com/group/wger">we'd love to hear from you</a>.{% endblocktrans %}</div>-<p><a href="/api/v1/?format=json" class="btn btn-block">{% trans "Browse the API" %}</a></p>+<p><a href="/api/v1/?format=json" class="btn btn-block" rel="nofollow">{% trans "Browse the API" %}</a></p><p><a href="{% url 'api-key' %}" class="btn btn-block">Generate API KEY</a></p>-{% endblock %}\ No newline at end of file+{% endblock %}