Skip to content

JLM Server requests

GreatWizard edited this page May 2, 2012 · 24 revisions

Definition of the JLM Server different requests, sent in JSON

StudentServlet (/student)

The user executed an exercise:

Demand

  • action = executed
  • username = username
  • course = course id
  • exoname = exo name
  • exolang = exo language
  • passedtests = number of passed tests
  • totaltests = total number of tests

Response

  • true/false

The user launched JLM:

Demand

  • action = join
  • username = username

Response

  • true/false

The user is still working in JLM (every 60 seconds):

Demand

  • action = heartbeat
  • username = username

Response

  • true/false

The user exited JLM:

Demand

  • action = leave
  • username = username

Response

  • true/false

The user changed of exercise:

Demand

  • action = switch
  • username = username
  • course = course id
  • exoname = exo name
  • exolang = exo language

Response

  • true/false

CourseServlet (/course)

Get all courses ids:

Demand

  • action = allids => Response : Array String = ids

AlertServlet (/alert)

Demand

//TODO

Response

//TODO

TeacherServlet (/teacher)

Create a new course:

Demand

  • action = new
  • course = course id
  • password = course password (for the students)
  • teacher_password = course teacher password (to administrate courses)

Response

  • true/false

Download updated courses data:

Demand

  • action = refresh

Response

  • Array 1 String =
  • Array 2 String =
  • Array 3 String =
  • Array 4 String =

Delete a course:

Demand

  • action = remove
  • course = course id
  • password = teacher password

Response

  • true/false
Clone this wiki locally