Пример #1
0
 def post(self, request, training_id):
     return handle_request(create_series,
                           request=request,
                           training_id=training_id)
Пример #2
0
 def post(self, request):
     return handle_request(create_raw_training, request=request)
Пример #3
0
 def get(self, request):
     return handle_request(get_all_trainings, request=request)
Пример #4
0
 def delete(self, request, training_id):
     return handle_request(delete_training_by_id,
                           request=request,
                           training_id=training_id)
Пример #5
0
 def put(self, request, training_id):
     return handle_request(update_training_by_id,
                           request=request,
                           training_id=training_id)
Пример #6
0
 def get(self, request, image):
     return handle_request(download_image, request=request, image=image)
Пример #7
0
 def get(self, request, training_id):
     return handle_request(get_training_by_id,
                           request=request,
                           training_id=training_id)
Пример #8
0
 def get(self, request):
     return handle_request(get_all_users, request=request)
Пример #9
0
 def get(self, request, user_id):
     return handle_request(get_trainings_by_session_id, request=request, user_id=user_id)
Пример #10
0
 def post(self, request):
     return handle_request(login_user, request=request)
Пример #11
0
 def post(self, request):
     return handle_request(register_user, request=request)
Пример #12
0
 def put(self, request, user_id=None):
     return handle_request(update_user, request=request, user_id=user_id, **request.data)
Пример #13
0
 def delete(self, request, user_id=None):
     return handle_request(delete_user, request=request, user_id=user_id)
Пример #14
0
 def get(self, request, user_id=None):
     return handle_request(get_user_by_id, request=request, user_id=user_id)
Пример #15
0
 def put(self, request):
     return handle_request(logout_user, request=request)
Пример #16
0
 def post(self, request, series_id):
     return handle_request(create_exercise, request=request, series_id=series_id)