Module Assign NameStore Str ImportFrom alias Import alias ImportFrom alias ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias alias alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad Str NameLoad Assign NameStore Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Return Call NameLoad Str If UnaryOpNot Call NameLoad NameLoad body Return Call NameLoad Str Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Str If CompareLtE NameLoad NameLoad body Return Call NameLoad Str Assign NameStore Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad NameLoad Index Str For NameStore Call AttributeLoad NameLoad attr keyword Num body Return Call NameLoad Str handlers ExceptHandler type NameLoad name NameStore body Print NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Return Call NameLoad Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Return Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str If CompareIs NameLoad NameLoad body Return Call NameLoad Str If CompareIn Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Return Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Return Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs Call NameLoad NameLoad NameLoad body Return Call NameLoad Str Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr TryExcept body Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Print NameLoad If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str orelse Return Call NameLoad keyword ListLoad keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str If CompareIs NameLoad NameLoad body Return Call NameLoad Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str orelse Return Call NameLoad keyword Str keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Print NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad keyword Call AttributeLoad NameLoad attr NameLoad keyword Num keyword Str orelse Return Call NameLoad keyword Str keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return Call NameLoad Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str If CompareIs NameLoad NameLoad body Return Call NameLoad Str Return Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Num keyword Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Return Call NameLoad Str Assign NameStore Call NameLoad NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Return Call NameLoad Str If CompareIs NameLoad NameLoad body Return Call NameLoad Str If CompareEq AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr AttributeLoad NameLoad attr Return Call NameLoad Str Return Call NameLoad Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Return Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str
N/A N/A __author__ Aran flask Blueprint N/A json GithubAPI.GithubAPI GitHubAPI_Keys google.appengine.ext db N/A requests N/A datetime operator itemgetter flask Flask request render_template redirect abort Response flask.ext.github GitHub flask.ext.cors CORS cross_origin flask.ext.autodoc Autodoc models.Course Course models.Campus Campus models.Message Message SE_API.Validation_Utils * SE_API.Respones_Utils * N/A course_routes N/A Blueprint course_routes __name__ N/A auto N/A Autodoc create_course N/A N/A token N/A N/A N/A 
    <span class="card-title">This call will create a new course in the DB</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'
    <br>
    <br>
    <b>Payload</b><br>
     - JSON Object, Example: <br>
         {<br>
         'courseName': 'Advance Math',<br>
         'campusId': 1234567890,<br>
         'startDate': {'year': 2015, 'month' : 4, 'day' : 3},<br>
         'endDate': {'year': 2016, 'month' : 5, 'day' : 14}<br>
        }<br>
    <br>
    <br>
    <b>Response</b>
    <br>
    201 - Created
    <br>
    400 - Bad Request
    <br>
    403 - Invalid token or not a lecturer
     N/A N/A N/A request data N/A N/A N/A bad_request no data N/A N/A N/A is_lecturer token N/A N/A N/A forbidden Invalid token or not a lecturer! N/A user N/A get_user_by_token token N/A N/A N/A payload N/A N/A json loads N/A request data N/A N/A N/A Exception N/A e N/A N/A N/A bad_request incorrect JSON format N/A N/A N/A start_date N/A N/A datetime date N/A N/A payload N/A startDate N/A year N/A N/A payload N/A startDate N/A month N/A N/A payload N/A startDate N/A day N/A end_date N/A N/A datetime date N/A N/A payload N/A endDate N/A year N/A N/A payload N/A endDate N/A month N/A N/A payload N/A endDate N/A day N/A N/A end_date start_date N/A N/A N/A bad_request end date cant be before (or same day) start date N/A course N/A Course courseName N/A payload N/A courseName campusId N/A payload N/A campusId master_id N/A N/A N/A N/A user key id startDate start_date endDate end_date N/A N/A N/A query N/A N/A Course all N/A N/A N/A query filter campusId =  N/A payload N/A campusId N/A N/A N/A query filter courseName =  N/A payload N/A courseName N/A c N/A N/A query run limit 1 N/A N/A N/A forbidden Course with same name already exists N/A N/A N/A Exception N/A e N/A N/A e N/A N/A N/A Exception N/A e N/A N/A e N/A N/A bad_request 2 N/A N/A N/A N/A course membersId append N/A str N/A N/A N/A N/A user key id N/A N/A N/A db put course N/A N/A N/A N/A user courses_id_list append N/A str N/A N/A N/A N/A course key id N/A N/A N/A db put user N/A N/A db save N/A N/A Response response N/A N/A course to_JSON status 201 mimetype application/json N/A N/A N/A course_routes route /api/courses/create/<string:token> methods N/A POST N/A N/A auto doc joinCourse N/A N/A token courseId N/A N/A N/A 
    <span class="card-title">This call will add the user (by token) to a specific course</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'<br>
        - courseId: 123456789
    <br>
    <br>
    <b>Payload</b><br>
     - None <br>
    <br>
    <b>Response</b>
    <br>
    202 - Accepted
    <br>
    400 - Bad Request
    <br>
    403 - Invalid token or not a lecturer
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request Wrong user Token N/A N/A N/A course N/A N/A Course get_by_id N/A int courseId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A N/A course None N/A N/A N/A bad_request No such course N/A N/A N/A str N/A N/A N/A N/A user key id N/A course membersId N/A N/A N/A bad_request User is already member in Course N/A N/A N/A N/A course membersId append N/A str N/A N/A N/A N/A user key id N/A N/A N/A N/A user courses_id_list append N/A str N/A N/A N/A N/A course key id N/A N/A N/A db put course N/A N/A N/A db put user N/A N/A db save N/A N/A Response response N/A N/A course to_JSON status 202 mimetype application/json N/A N/A N/A course_routes route /api/courses/joinCourse/<string:token>/<string:courseId> methods N/A PUT N/A N/A auto doc getAllCoursesByCampus N/A N/A token campusId N/A N/A N/A 
    <span class="card-title">>This Call will return an array of all courses in a given campus</span>
    <br>
    <b>Route Parameters</b><br>
        - campusId: 1234567890
    <br>
    <br>
    <b>Payload</b><br>
     - NONE
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Example:<br>
    <code>
        {<br>
        'courseName': 'Advance Math',<br>
        'campusId': 1234567890,<br>
        'startDate': '2015-14-3'<br>
        'endDate': '2015-29-6'<br>
        'taskFlag': 'False'<br>
        'id' : 1234567890<br>

        }
    </code>
    <br>
     N/A N/A N/A get_user_by_token token None N/A N/A N/A bad_request Bad User Token N/A arr N/A N/A query N/A N/A Course all N/A N/A N/A N/A N/A query filter campusId =  N/A int campusId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A c N/A N/A query run N/A N/A N/A N/A arr append N/A dict N/A N/A json loads N/A N/A c to_JSON N/A arr N/A N/A N/A len arr 0 N/A N/A N/A Response response N/A N/A json dumps arr status 200 mimetype application/json N/A N/A N/A Response response N/A status 200 mimetype application/json N/A N/A N/A course_routes route /api/courses/getAllCoursesByCampus/<string:token>/<string:campusId> methods N/A GET N/A N/A auto doc getUserCoursesByCampus N/A N/A token campusId N/A N/A N/A 
    <span class="card-title">This Call will return an array of all Courses of a certain User in a specific Campus</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'<br>
        - campusId: 1234354543<br>
    <br>
    <br>
    <b>Payload</b><br>
     - NONE <br>
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Array, Example:<br>
    [<br>
    {
                'title': 'JCE',<br>
                'email_ending': '@post.jce.ac.il',<br>
                'master_user_id': 123453433341, (User that created the campus)<br>
                'avatar_url': 'http://some.domain.com/imagefile.jpg',<br>
                'id' : 1234567890<br>
    },<br>
    ....<br>
    {<br>
    ...<br>
    }req<br>
    ]<br>
    <br>
    403 - Invalid Token<br>
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request Bad user Token N/A N/A N/A campus N/A N/A Campus get_by_id N/A int campusId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A N/A campus None N/A N/A N/A bad_request No such Campus N/A arr N/A N/A i N/A user courses_id_list N/A N/A course N/A N/A Course get_by_id N/A int i N/A N/A N/A course campusId N/A N/A N/A N/A campus key id N/A N/A N/A N/A arr append N/A dict N/A N/A json loads N/A N/A course to_JSON N/A N/A N/A len arr 0 N/A N/A N/A Response response N/A N/A json dumps arr status 200 mimetype application/json N/A N/A N/A Response response [] status 200 mimetype application/json N/A N/A N/A course_routes route /api/courses/getUserCoursesByCampus/<string:token>/<string:campusId> methods N/A GET N/A N/A auto doc getCoursesByUser N/A N/A token userId N/A N/A N/A 
    <span class="card-title">This Call will return an array of all Courses of a certain User</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'<br>
        - userId: 1234354543<br>
    <br>
    <br>
    <b>Payload</b><br>
     - NONE <br>
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Array, Example:<br>
    [<br>
    {
                'title': 'JCE',<br>
                'email_ending': '@post.jce.ac.il',<br>
                'master_user_id': 123453433341, (User that created the campus)<br>
                'avatar_url': 'http://some.domain.com/imagefile.jpg',<br>
                'id' : 1234567890<br>
    },<br>
    ....<br>
    {<br>
    ...<br>
    }req<br>
    ]<br>
    <br>
    403 - Invalid Token<br>
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request Bad user Token N/A N/A N/A otherUser N/A N/A User get_by_id N/A int userId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A otherUser N/A N/A User get_by_id N/A int userId N/A N/A otherUser None N/A N/A N/A bad_request Bad user Id N/A arr N/A N/A i N/A otherUser courses_id_list N/A N/A i N/A course N/A N/A Course get_by_id N/A int i N/A N/A N/A arr append N/A dict N/A N/A json loads N/A N/A course to_JSON N/A N/A N/A len arr 0 N/A N/A N/A Response response N/A N/A json dumps arr status 200 mimetype application/json N/A N/A N/A Response response [] status 200 mimetype application/json N/A N/A N/A course_routes route /api/courses/getCoursesByUser/<string:token>/<string:userId> methods N/A GET N/A N/A auto doc getCoursesByID N/A N/A token courseId N/A N/A N/A 
    <span class="card-title">This Call will return A Course By ID</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'<br>
        - courseId: 1234354543<br>
    <br>
    <br>
    <b>Payload</b><br>
     - NONE <br>
    <br>
    <br>
    <b>Response</b>
    <br>
    200 - JSON Array, Example:<br>
    { <br>
                'title': 'JCE',<br>
                'email_ending': '@post.jce.ac.il',<br>
                'master_user_id': 123453433341, (User that created the campus)<br>
                'avatar_url': 'http://some.domain.com/imagefile.jpg',<br>
                'id' : 1234567890<br>
    }<br>
    <br>
    403 - Invalid Token<br>
     N/A user N/A get_user_by_token token N/A N/A user None N/A N/A N/A bad_request Bad user Token N/A N/A N/A course N/A N/A Course get_by_id N/A int courseId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A N/A course None N/A N/A N/A bad_request Bad Course Id N/A N/A Response response N/A N/A course to_JSON status 200 mimetype application/json N/A N/A N/A course_routes route /api/courses/getCoursesById/<string:token>/<string:courseId> methods N/A GET N/A N/A auto doc deleteCourse N/A N/A token courseId N/A N/A N/A 
    <span class="card-title">This Call will delete a specific Course</span>
    <br>
    <b>Route Parameters</b><br>
        - seToken: 'seToken'<br>
        - courseid: 'courseid'
    <br>
    <br>
    <b>Payload</b><br>
     - NONE <br>
    <br>
    <br>
    <b>Response</b>
    <br>
    202 - Deleted Course
    <br>
    ....<br>
    {<br>
    ...<br>
    }req<br>

    ]<br>
    400 - no such Course
    <br>
    403 - Invalid token or not a lecturer or lecturer is not owner of Course!<br>
     N/A N/A N/A is_lecturer token N/A N/A N/A forbidden Invalid token or not a lecturer! N/A user N/A get_user_by_token token N/A N/A N/A c N/A N/A Course get_by_id N/A int courseId N/A N/A N/A Exception N/A e N/A N/A N/A bad_request Bad id format N/A N/A c None N/A N/A N/A bad_request no such course N/A N/A N/A c master_id N/A N/A N/A N/A user key id N/A N/A N/A N/A db delete c N/A N/A db save N/A N/A accepted course deleted N/A N/A forbidden lecturer is not owner of course N/A N/A N/A course_routes route /api/courses/deleteCourse/<string:token>/<string:courseId> methods N/A DELETE N/A N/A auto doc documentation N/A N/A N/A N/A N/A N/A N/A auto html N/A N/A N/A course_routes route /api/courses/help