API Methods

Login
login
Post
group
Request
group
student
timetable
search

Lab Remote Services

Group Post

With a group post, an assistant can edit the students' grades for a specific group and activity.

API call:
/post/

Description
Each Post request is done using a POST method. The post method receives a number of parameters: course : Course id.
user_id : User id.
type : type of query, "group" in this case.
contents : json encoded contents.
signature : md5 hash signature of the following string :
"course_iduser_idtypecontentssecret_code"

Content
name : Group name.
activity_id : Id of the associated activity.
students : A list of students.
Each student has an id and a grade.
week : (Optional) The week of the activity. If missing the current week is used.

Sample

 {
   "name" : "334CBb", "activity_id" : "5",
   "students" : [ { "id": "1", "grade" : "10"}, 
                  { "id": "2", "grade" : "8"}, .... ],
    "week" : 4
 }