コード例 #1
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = Day.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'description': ALL,
                  'workout': ALL_WITH_RELATIONS}
コード例 #2
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = Workout.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  "comment": ALL,
                  "creation_date": ALL}
コード例 #3
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = ScheduleStep.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'schedule': ALL_WITH_RELATIONS,
                  'workout': ALL_WITH_RELATIONS}
コード例 #4
0
ファイル: resources.py プロジェクト: Chris-Maina/wg-apollo
 class Meta:
     queryset = NutritionPlan.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'creation_date': ALL,
                  'description': ALL,
                  'has_goal_calories': ALL}
コード例 #5
0
ファイル: resources.py プロジェクト: Chris-Maina/wg-apollo
 class Meta:
     queryset = Meal.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'order': ALL,
                  'plan': ALL_WITH_RELATIONS,
                  'time': ALL}
コード例 #6
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = Set.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'day': ALL_WITH_RELATIONS,
                  'order': ALL,
                  'sets': ALL}
コード例 #7
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = Schedule.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'is_active': ALL,
                  'is_loop': ALL,
                  'name': ALL}
コード例 #8
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = WorkoutSession.objects.all()
     authentication = MultiAuthentication(SessionAuthentication(),
                                          ApiKeyAuthentication())
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  "date": ALL,
                  "time_start": ALL,
                  "time_end": ALL}
コード例 #9
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = Setting.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'exercise': ALL_WITH_RELATIONS,
                  'order': ALL,
                  'reps': ALL,
                  'set': ALL_WITH_RELATIONS}
コード例 #10
0
ファイル: resources.py プロジェクト: Chris-Maina/wg-apollo
 class Meta:
     queryset = MealItem.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'amount': ALL,
                  'ingredient': ALL_WITH_RELATIONS,
                  'meal': ALL_WITH_RELATIONS,
                  'order': ALL,
                  'weight_unit': ALL_WITH_RELATIONS}
コード例 #11
0
ファイル: resources.py プロジェクト: archibishop/wg-aces
 class Meta:
     queryset = WorkoutLog.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL,
                  'date': ALL,
                  'exercise': ALL_WITH_RELATIONS,
                  'reps': ALL,
                  'weight': ALL,
                  'workout': ALL_WITH_RELATIONS}
コード例 #12
0
ファイル: resources.py プロジェクト: JsAppNinja/wger-backend
 class Meta:
     queryset = WeightEntry.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()
     filtering = {'id': ALL, 'date': ALL, 'weight': ALL}
コード例 #13
0
 class Meta:
     excludes = ('is_temporary', )
     queryset = UserProfile.objects.all()
     authentication = ApiKeyAuthentication()
     authorization = UserObjectsOnlyAuthorization()