Skip to content

JLM Server requests

chmod0 edited this page Apr 25, 2012 · 24 revisions

Definition of the JLM Server different requests, sent in JSON

StudentServlet (/student)

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

CourseServlet (/course)

Get all courses ids:

  • action = allids

AlertServlet (/alert)

TeacherServlet (/teacher)

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

Clone this wiki locally