Function: SurveyCallback

CALL:

SurveyCallback(event)

DESCRIPTION:

Callback called by modelit.webserver.Server object for processing the survey results.

INPUT:

event modelit.webserver.HttpExchange
The request data and methods to generate a response.

OUTPUT:

    No output, the survey result is stored and statuscode 200 (OK) is returned.
 

EXAMPLE:

   server = modelit.web.server.Server('localhost', 8081, @SurveyCallback).start() 
 
   % Open Postman and type: http://localhost:8081/survey in the address bar
   % Specify HTTP method: POST and optionally fill the body with a json
   % object representing a survey result.%