From 1305762548d48892b5427de0ac3272a3c6945f50 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 14 Jun 2015 16:49:19 +0300 Subject: [PATCH] Changed AutoDoc formatting --- SE_API/API.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/SE_API/API.py b/SE_API/API.py index 6350d47..d62914a 100644 --- a/SE_API/API.py +++ b/SE_API/API.py @@ -89,13 +89,21 @@ def confirm_user_to_campus(validation_token): @auto.doc() def send_activation(token): """ - This Method Will Send An Email To The User - To Confirm his Account - :param token: - seToken - :payload: JSON - {email: 'academic@email.ac.com'} - :return: - 200 - Email Sent - No Response - 400 - Bad Request - 403 - Invalid Token + This Method Will Send An Email To The User - To Confirm his Account +
+ Route Parameters
+ - token: 'seToken'
+
+ Payload
+ - JSON object Example +
+ {email: 'academic@email.ac.com'} +
+
+ Response
+ 200 - Email Sent - No Response
+ 400 - Bad Request
+ 403 - Invalid Token
""" if not request.data: return Response(response=json.dumps({'message': 'Bad Request'}),