Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add info endpoint to viewset docs
Roland Geider7bf1ef544956
diff --git a/wger/exercises/api/views.py b/wger/exercises/api/views.pyindex f7e553eb3..deed5312e 100644--- a/wger/exercises/api/views.py+++ b/wger/exercises/api/views.py@@ -57,7 +57,8 @@ from wger.utils.permissions import CreateOnlyPermissionclass ExerciseViewSet(viewsets.ModelViewSet):"""- API endpoint for exercise objects+ API endpoint for exercise objects. For a read-only endpoint with all+ the information of an exercise, see /api/v2/exerciseinfo/"""queryset = Exercise.objects.accepted()serializer_class = ExerciseSerializerdiff --git a/wger/nutrition/api/views.py b/wger/nutrition/api/views.pyindex 00e11a0fb..8089d4dcd 100644--- a/wger/nutrition/api/views.py+++ b/wger/nutrition/api/views.py@@ -58,7 +58,8 @@ from wger.utils.viewsets import WgerOwnerObjectModelViewSetclass IngredientViewSet(viewsets.ReadOnlyModelViewSet):"""- API endpoint for ingredient objects+ API endpoint for ingredient objects. For a read-only endpoint with all+ the information of an ingredient, see /api/v2/ingredientinfo/"""queryset = Ingredient.objects.accepted()serializer_class = IngredientSerializer@@ -192,7 +193,8 @@ class IngredientWeightUnitViewSet(viewsets.ReadOnlyModelViewSet):class NutritionPlanViewSet(viewsets.ModelViewSet):"""- API endpoint for nutrition plan objects+ API endpoint for nutrition plan objects. For a read-only endpoint with all+ the information of nutritional plan(s), see /api/v2/nutritionplaninfo/"""serializer_class = NutritionPlanSerializeris_private = True