예제 #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)