diff --git a/SE_API/CampusRoutes.py b/SE_API/CampusRoutes.py index efb92ac..c49fb3e 100644 --- a/SE_API/CampusRoutes.py +++ b/SE_API/CampusRoutes.py @@ -210,15 +210,15 @@ def getCampusesByUser(token): #---------------------------------------------------------- -@campus_routes.route('/api/campuses/deleteCampus//', methods=['DELETE']) +@campus_routes.route('/api/campuses/deleteCampus//', methods=['DELETE']) @auto.doc() -def deleteCampus(token,campusid): +def deleteCampus(token,campusId): """ This Call will delete a specific campus
Route Parameters
- seToken: 'seToken' - - campusid: 'campusid' + - campusId: 1234567890

Payload
@@ -244,7 +244,7 @@ def deleteCampus(token,campusid): return forbidden("Invalid token or not a lecturer!") user = get_user_by_token(token) - camp = Campus.get_by_id(int(campusid)) + camp = Campus.get_by_id(int(campusId)) if camp is None: return bad_request("no such campus")