TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/tutosrive/avl_tree_car/llms.txt
Use this file to discover all available pages before exploring further.
/data routes expose static JSON files stored in the server’s src/data/ folder over HTTP. They are primarily used by clients to fetch obstacle type definitions — the catalogue that maps integer type_id values to obstacle names and damage values — but any .json file placed in that directory becomes immediately accessible. All responses follow the standard BaseFlaskResponse envelope documented in the API Overview.
GET /data
Returns a welcome message confirming the Data section is reachable. No request body or parameters are needed. Response 200GET /data/json/<filename>
Reads the specified.json file from the server’s src/data/ directory and returns its parsed contents in the data field. The route accepts both GET and POST methods; standard usage is GET.
Path parameter
The filename including its
.json extension, for example obstacles_types.json. Only the bare filename is accepted — no subdirectory segments or path separators.Responses
200 when the file exists and was parsed successfully; 400 when the file cannot be found.true on success, false if the file does not exist.On success:
"'data' is the content of '<filename>' file!". On failure: the original request description, "You're trying get the file: '<filename>'".The parsed JSON contents of the file on success;
{} if the file was not found.null on success; "The file '<filename>' don't exists!" when the requested file is missing.curl examples
Success response — obstacles_types.json
The obstacles_types.json file ships with the server and defines the ten obstacle categories used throughout the simulation. Each entry maps a numeric id to a display type name and a damage value applied when the car collides with that obstacle.
File not found — 400
The
type_id values accepted by POST /avl/node/add and POST /avl/add/configs correspond directly to the id field in obstacles_types.json. Fetch this file at startup to populate obstacle-type selectors in your client.