GNOJudge - GNOJ’s Not Only a Judge system

People who joined

  • 子期
  • 許胖
  • PCC

TODOs

By Sunday:
  • Judge method
  • Submission model


while  true 
  • Contests

Resources

/user 

Method
Description
Parameter
Response
Example
GET /user 
Returns a list of user
  • offset - Offset of users. (Number)
  • Could be negative for negative indexes.
  • count - Count of users in the response (Number)
  • order_by - The data key to order the users. (String)
  • filter - The filter of user lookup (String).
  • The filter constructs of: (user data key) + >=< + (Number or String)


POST /user 
Create a user 
  • username
  • password
  • email - (optional for admin)


GET /user/:uid 
Returns data of a user 
  • username
  • submission_count
  • problems_count
  • accepted_problems
  • email - (optional for admin)


PUT /user/:uid 
Update data of a user 
  • username


/userSet 

Method
Description
Parameter
Response
Example
GET /userSet 
Returns a list of userSets
  • offset
  • order_by
  • filter


POST /userSet 
Create a userSet 



GET /userSet/:sid 
Returns data of a userSet 



PUT /userSet/:sid 
Update data of a userSet 



/problem 

Method
Description
Parameter
Response
Example
GET /problem 
Returns a list of problems 



GET /problem/:pid 
Create a problem 



POST /problem 
Returns data of a problem 



PUT /problem/:pid 
Update data of a problem 



/problemSet 

Method
Description
Parameter
Response
Example
GET /problemSet 
Returns a list of problemSet



GET /problemSet/:psid 
Create a problemSet 



POST /problemSet 
Returns data of a problemSet 



PUT /problemSet/:psid 
Update data of a problemSet 



/contest 

Method
Description
Parameter
Response
Example
GET /contest 
Returns a list of contest



GET /contest/:cid 
Create a contest 



POST /contest 
Returns data of a contest 



PUT /contest/:cid 
Update data of a contest 




/submission 

Method
Description
Parameter
Response
Example
Example
GET /submission 
Returns a list of problemSet




GET /submission/:sid 
Create problemSet 




POST /submission 
Returns data of a problemSet 




PUT /submission/:sid 
Update data of a problemSet 





/auth 


Method
Description
Parameter
Response
Example
Response
Example
GET /auth 
Returns a list of  





POST /auth 
Create problemSet 






Returns data of a problemSet 






Update data of a problemSet 





/role 

Method
Description
Parameter
Response
Example
GET /role 
Returns a list of role



POST /role 
Create a role 



PUT /role 
Update data of a role 




Update data of a problemSet