From f8469f5301e8df720702f8303f3c2103daaa3b18 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Sun, 14 Jun 2015 16:39:14 +0300 Subject: [PATCH] Changed AutoDoc layout --- SE_API/API.py | 15 +++- .../templates/autodoc_default.html | 69 +++++++++++++++---- 2 files changed, 68 insertions(+), 16 deletions(-) diff --git a/SE_API/API.py b/SE_API/API.py index 2e66002..6350d47 100644 --- a/SE_API/API.py +++ b/SE_API/API.py @@ -49,11 +49,20 @@ def wellcomePage(): @auto.doc() def confirm_user_to_campus(validation_token): """ - This Function is will re - :param validation_token: 'seToken|email_suffix' + This Function is will Activate a user and add tha campus to it +
+ Route Parameters + :return: 200 - redirect to home + new cookie 403 - Invalid Token + main(){ + asd = 3 + } """ #TODO token = str(validation_token).split('|')[0] @@ -83,7 +92,7 @@ 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: + :return: 200 - Email Sent - No Response 400 - Bad Request 403 - Invalid Token diff --git a/lib/flask_autodoc/templates/autodoc_default.html b/lib/flask_autodoc/templates/autodoc_default.html index d6bce0e..8421bfb 100644 --- a/lib/flask_autodoc/templates/autodoc_default.html +++ b/lib/flask_autodoc/templates/autodoc_default.html @@ -1,5 +1,10 @@ + + + + + {% if title is defined -%} {{title}} @@ -8,15 +13,7 @@ {% endif -%} + +

{% if title is defined -%} {{title}} @@ -54,14 +59,18 @@

{% for doc in autodoc %} -
-

{{doc.rule|escape}}

-
    +
    +
    +
    +
    +
    + {{doc.rule|escape}} +
      {% for method in doc.methods -%}
    • {{method}}
    • {% endfor %}
    -
      +
        {% for arg in doc.args %}
      • {{arg}} @@ -69,8 +78,42 @@
      • {% endfor %}
      -

      {{doc.docstring|urlize|nl2br}}

      + {{doc.docstring|safe}} +
    + +
    +
    +
    {% endfor %} + + \ No newline at end of file