forked from BuggleInc/PLM
-
Notifications
You must be signed in to change notification settings - Fork 0
JLM Server requests
chmod0 edited this page Apr 25, 2012
·
24 revisions
Definition of the JLM Server different requests, sent in JSON
The user executed an exercise:
- action = executed
- username = username
- course = course id
- exoname = exo name
- exolang = exo language
- passedtests = number of passed tests
- totaltests = total number of tests
The user launched JLM:
- action = join
- username = username
The user is still working in JLM (every 60 seconds):
- action = heartbeat
- username = username
The user exited JLM:
- action = leave
- username = username
The user changed of exercise:
- action = switch
- username = username
- course = course id
- exoname = exo name
- exolang = exo language
Get all courses ids:
- action = allids
Create a new course:
- action = new
- course = course id
- password = course password (for the students)
- teacher_password = course teacher password (to administrate courses)
Download updated courses data:
- action = refresh
Delete a course:
- action = remove
- course = course id
- password = teacher password