forked from BuggleInc/PLM
-
Notifications
You must be signed in to change notification settings - Fork 0
JLM Server requests
GreatWizard edited this page May 2, 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
- true/false
The user launched JLM:
- action = join
- username = username
- true/false
The user is still working in JLM (every 60 seconds):
- action = heartbeat
- username = username
- true/false
The user exited JLM:
- action = leave
- username = username
- true/false
The user changed of exercise:
- action = switch
- username = username
- course = course id
- exoname = exo name
- exolang = exo language
- true/false
Get all courses ids:
- action = allids => Response : Array String = ids
//TODO
//TODO
Create a new course:
- action = new
- course = course id
- password = course password (for the students)
- teacher_password = course teacher password (to administrate courses)
- true/false
Download updated courses data:
- action = refresh
- Array 1 String =
- Array 2 String =
- Array 3 String =
- Array 4 String =
Delete a course:
- action = remove
- course = course id
- password = teacher password
- true/false