Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


A REST API server based on JAVA Spark Framework.


Initialize a New Session

POST http://localhost:port/init

    sessionID: "USR_1234",
    timeStamp: "yyyy-MM-dd'T'HH-mm-ss.SSS"

Get the Next Response of a Ongoing Session

POST http://locahost:port/next

    sessionID: "USR_1234",
    text: "I guess the answer is APPLE", 
    asrConf: 0.9,
    timeStamp: "yyyy-MM-dd'T'HH-mm-ss.SSS"

There is also a specical symbol to deal with time out. The message will still be sent via port/next

    sessionID: "USR_1234",
    text: "TIME_OUT", 
    asrConf: 1.0,
    timeStamp: "yyyy-MM-dd'T'HH-mm-ss.SSS"

Expected Return Format

All the POST requests will have the same return JSON format.

    sessionID: "USR_1234",
    sys: "This word starts with A",
    roundNumber: 3,
    timer: 140,
    terminal: False,
    roundScore: 4,
    totalScore: 10,
    version: "1.0-xxx",
    timeStamp: "yyyy-MM-dd'T'HH-mm-ss.SSS"

If non-verbal output is also needed. Please add the non-verbal features into the JSON.


For easier synchronization with DialPort server logging system. Use UTC-4 timezone for all time stamps.

You can’t perform that action at this time.