Changed AutoDoc formatting
This commit is contained in:
parent
ae8dcadae7
commit
1305762548
1 changed files with 15 additions and 7 deletions
|
@ -89,13 +89,21 @@ def confirm_user_to_campus(validation_token):
|
||||||
@auto.doc()
|
@auto.doc()
|
||||||
def send_activation(token):
|
def send_activation(token):
|
||||||
"""
|
"""
|
||||||
This Method Will Send An Email To The User - To Confirm his Account
|
<span class="card-title">This Method Will Send An Email To The User - To Confirm his Account</span>
|
||||||
:param token: - seToken
|
<br>
|
||||||
:payload: JSON - {email: 'academic@email.ac.com'}
|
<b>Route Parameters</b><br>
|
||||||
<b>:return:<b>
|
- token: 'seToken'<br>
|
||||||
200 - Email Sent - No Response
|
<br>
|
||||||
400 - Bad Request
|
<b>Payload</b><br>
|
||||||
403 - Invalid Token
|
- JSON object <i>Example</i>
|
||||||
|
<br>
|
||||||
|
<code>{email: 'academic@email.ac.com'}</code>
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<b>Response</b><br>
|
||||||
|
200 - Email Sent - No Response<br>
|
||||||
|
400 - Bad Request<br>
|
||||||
|
403 - Invalid Token<br>
|
||||||
"""
|
"""
|
||||||
if not request.data:
|
if not request.data:
|
||||||
return Response(response=json.dumps({'message': 'Bad Request'}),
|
return Response(response=json.dumps({'message': 'Bad Request'}),
|
||||||
|
|
Loading…
Reference in a new issue