HTTP API¶
GET /feature¶
Gets a JSON map of all features
Example return:
{"room_gadgets": false,
"experiments_service_enroll": false}
GET /host?sid={service_id}¶
Gets a load-balanced host for the given service id
Example return:
{"scheme": "http", "netloc": "127.0.0.1:8080", "path": ""}
GET|POST|DELETE|PUT /proxy?sid={service_id}&async=true|false¶
Proxies an HTTP request to an internal service(s), identified by the ‘sid’ query parameters. ‘sid’ can be repeated for multiple services, but only when ‘async’ is true.
The ‘async’ flag determines whether the request will block and return the response or if ‘false’, the response will be an immediate 202 with the proxied request happening in the background.
If ‘async’ is false, the response will be returned as it was received.