Public API: Nexus
The public API is intended for advanced users that have knowledge of programming and create their own software.
The base endpoint of Nexus related calls is http://localhost:7777/aitum.
Methods
Get Commands
For getting a list of commands and their IDs.
Call GET /aitum/commands/
Successful Response Keys in the response refer to their name within Nexus, and the value as their internal ID.
{
"status": "OK",
"data": {
"Test": "TqpYRQEcpXv5hdux"
}
}
Trigger Command
For triggering a command in Nexus by its ID.
Call GET /aitum/commands/:commandid
Successful Response Nothing interesting returned, but this indicates a successful run.
{
"status": "OK",
"data": "OK"
}
Get State Variables
For getting a list of state variables and their attached information.
Call GET /aitum/state/
Successful Response An array of global variables.
Type values are as follows:
Type Value Integer 0 Float 1 String 2 Boolean 3 String Array 4
| Type | Value |
|---|---|
| Integer | 0 |
| Float | 1 |
| String | 2 |
| Boolean | 3 |
| String Array | 4 |
{
"status": "OK",
"data": [
{
"_id": "Zw1cP6R3wrHVA0gZ",
"name": "test3",
"type": 2,
"value": "asdasd"
},
{
"_id": "o89r2sVwAYufiGnt",
"name": "test",
"type": 2,
"value": "123"
}
]
}