def post(self, request, training_id): return handle_request(create_series, request=request, training_id=training_id)
def post(self, request): return handle_request(create_raw_training, request=request)
def get(self, request): return handle_request(get_all_trainings, request=request)
def delete(self, request, training_id): return handle_request(delete_training_by_id, request=request, training_id=training_id)
def put(self, request, training_id): return handle_request(update_training_by_id, request=request, training_id=training_id)
def get(self, request, image): return handle_request(download_image, request=request, image=image)
def get(self, request, training_id): return handle_request(get_training_by_id, request=request, training_id=training_id)
def get(self, request): return handle_request(get_all_users, request=request)
def get(self, request, user_id): return handle_request(get_trainings_by_session_id, request=request, user_id=user_id)
def post(self, request): return handle_request(login_user, request=request)
def post(self, request): return handle_request(register_user, request=request)
def put(self, request, user_id=None): return handle_request(update_user, request=request, user_id=user_id, **request.data)
def delete(self, request, user_id=None): return handle_request(delete_user, request=request, user_id=user_id)
def get(self, request, user_id=None): return handle_request(get_user_by_id, request=request, user_id=user_id)
def put(self, request): return handle_request(logout_user, request=request)
def post(self, request, series_id): return handle_request(create_exercise, request=request, series_id=series_id)