A REST API server based on JAVA Spark Framework.
POST http://localhost:port/init
{
    sessionID: "USR_1234",
    timeStamp: "yyyy-MM-dd'T'HH-mm-ss.SSS"
}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"
}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.