SurveyCallback(event)
Callback called by modelit.webserver.Server object for processing the survey results.
event | modelit.webserver.HttpExchange | The request data and methods to generate a response. |
No output, the survey result is stored and statuscode 200 (OK) is returned.
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.%