change delete campus name
This commit is contained in:
parent
af98c69723
commit
7c5115869c
1 changed files with 4 additions and 4 deletions
|
@ -210,15 +210,15 @@ def getCampusesByUser(token):
|
||||||
#----------------------------------------------------------
|
#----------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
@campus_routes.route('/api/campuses/deleteCampus/<string:token>/<string:campusid>', methods=['DELETE'])
|
@campus_routes.route('/api/campuses/deleteCampus/<string:token>/<string:campusId>', methods=['DELETE'])
|
||||||
@auto.doc()
|
@auto.doc()
|
||||||
def deleteCampus(token,campusid):
|
def deleteCampus(token,campusId):
|
||||||
"""
|
"""
|
||||||
<span class="card-title">This Call will delete a specific campus</span>
|
<span class="card-title">This Call will delete a specific campus</span>
|
||||||
<br>
|
<br>
|
||||||
<b>Route Parameters</b><br>
|
<b>Route Parameters</b><br>
|
||||||
- seToken: 'seToken'
|
- seToken: 'seToken'
|
||||||
- campusid: 'campusid'
|
- campusId: 1234567890
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<b>Payload</b><br>
|
<b>Payload</b><br>
|
||||||
|
@ -244,7 +244,7 @@ def deleteCampus(token,campusid):
|
||||||
return forbidden("Invalid token or not a lecturer!")
|
return forbidden("Invalid token or not a lecturer!")
|
||||||
|
|
||||||
user = get_user_by_token(token)
|
user = get_user_by_token(token)
|
||||||
camp = Campus.get_by_id(int(campusid))
|
camp = Campus.get_by_id(int(campusId))
|
||||||
|
|
||||||
if camp is None:
|
if camp is None:
|
||||||
return bad_request("no such campus")
|
return bad_request("no such campus")
|
||||||
|
|
Loading…
Reference in a new issue