Root Endpoints¶
Management UI Endpoint¶
Endpoint: Management UI
Method: GET
- RESPONSES:
- 200: A file with that path exits and it is returned
- 404: A file with that path doesn’t exist
The Management UI endpoint serves the static html, css and js files that are the UI itself. The path is the path to the file which the frontend requires. If the path is None then the index.html will be served. The UI static files are located in a folder specified in the Configuration of the node itself. The endpoint serves files only from the specified folder. If a file doesn’t exists then a 404 is returned.
Worker Redirect Endpoint¶
Endpoint: Worker Redirect
Method: GET
- RESPONSES:
- 301: A permanent redirect to the correct location
- 404: Unable to find match for this request
The Worker Redirect endpoint is the CORE endpoint of the application. It parses a request into a host and path. It conducts a search with the help of the HsManager() on the host and path. The search returns a list of matched ids of RedirectRules. If the list is larger than one then we pick the final match with the help of HsManager.pick_result() function. If while picking the final result there are two or more rules with the same weight then the request is considered ambiguous and it is added to the Ambiguous Table. Also if the rewrite is not configured correctly then a 404 page will be returned and the request will be also added to the Ambiguous Table for later checking by a person.