From 7c5115869c1ff7d2ee921993ee1593b37999b7cd Mon Sep 17 00:00:00 2001 From: aranzaiger Date: Wed, 24 Jun 2015 20:23:22 +0300 Subject: [PATCH] change delete campus name --- SE_API/CampusRoutes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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")