GET /group/
Returns a list of all the groups
{
"1": {
"course_code": [
"COMP1511",
"COMP1521"
],
"description": "description",
"location": "location",
"max_capacity": 5,
"name": "name"
},
"2": {
"course_code": [
"COMP3331",
"COMP6841"
],
"description": "test description",
"location": "test location",
"max_capacity": 3,
"name": "test group"
}
}GET /group/<id>
returns
{
"course_code": [
"COMP1511",
"COMP1521"
],
"description": "description",
"location": "location",
"max_capacity": 5,
"name": "name"
}GET /user/<id>
returns
{
"fname": "first",
"lname": "last",
"username": "tester",
"subjects": [
{
"courseCode": "COMP1511",
"mark": "DN"
},
{
"courseCode": "COMP1521",
"mark": "CR"
}
]
}POST /user/<id>
body
{
"fname": "first name",
"lname": "last name",
"username": "username",
"password": "plaintext password"
}returns same as above
GET /user/<id>/subjects
returns
[
{
"courseCode": "COMP1511",
"mark": "DN"
},
{
"courseCode": "COMP1521",
"mark": "CR"
},
{
"courseCode": "COMP3331",
"mark": "CR"
}
]POST /user/<id>/subjects
body
{
"courseCode": "COMP1511",
"mark": "DN"
}returns (same as above)
POST /validate
body
{
"username": "username",
"password": "plaintext password"
}returns true OR false
POST /group/<groupID>
body
{
"username": "username"
}returns the same as GET /group/<groupID> same as