WebTUT needs to interact with the server to gather updated data from the service. There are two ways to achieve this goal:
{ "result": <<RESULT>>, "error": false, "status": 200 }
Where <<RESULT>> has the data that was requested by the call it self.
These methods can implement/inherit authentication from the WebTUT application. Methods that require authentication will be marked as "AAI Enabled" and will return a null result, error true and a status 401 (Authentication required) if no proper authentication is provided.
{ "result": null, "error": true, "status": 401 }
https://webrtc-hub.fccn.pt/webtut/api/getVersion
{"result":{"version":1},"error":false,"status":200}
Example:
https://webrtc-hub.fccn.pt/webtut/api/getCurrentQueueInfo/d467c153a50841b625b6c284e2054f50/html
Response:
{"result":{"html":"5"},"error":false,"status":200}
Example:
https://webrtc-hub.fccn.pt/webtut/api/getCurrentQueueInfo/d467c153a50841b625b6c284e2054f50/json
Response:
{"result":{"queueSize":0,"participants":[]},"error":false,"status":200}