File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818- The Item Response Theory engine
1919
2020Still in Progress (was part of the original project)
21+ - Authorization with roles
2122- Question difficulty reestimation
2223- Support for multiple question types
2324- Question categorization by concept
Original file line number Diff line number Diff line change 2828
2929@api .route ('/<question_uuid>' )
3030class QuestionResource (Resource ):
31+ """
32+ A resource for individual questions
33+ """
3134 @api .marshal_with (QUESTION_MODEL )
3235 @jwt_required
3336 def get (self , question_uuid ):
37+ """
38+ GET handler
39+ """
3440 return Question .objects (uuid = question_uuid ).first ()
3541
3642 @api .expect (QUESTION_MODEL , validate = True )
3743 @jwt_required
3844 def put (self , question_uuid ):
45+ """
46+ PUT handler
47+ """
3948 edit_question = Question (** api .payload )
4049 edit_question .uuid = question_uuid
4150 edit_question .save ()
4251
4352 @jwt_required
4453 def delete (self , question_uuid ):
54+ """
55+ DELETE handler
56+ """
4557 Question .objects (uuid = question_uuid ).delete ()
Original file line number Diff line number Diff line change 3838@sort_paginate_params (api )
3939class UserListResource (Resource ):
4040 """
41- A resource for the student list
41+ A resource for the user list
4242 """
4343 @api .marshal_list_with (USER_MODEL )
4444 @sort_paginate (allow_sort = ['first_name' , 'last_name' , 'email' ])
@@ -52,7 +52,7 @@ def get(self):
5252@api .route ('/<user_id>' )
5353class UserResource (Resource ):
5454 """
55- A resource for retrieving individual students
55+ A resource for retrieving individual users
5656 """
5757 @api .marshal_with (USER_MODEL )
5858 def get (self , user_id ):
You can’t perform that action at this time.
0 commit comments