GET /api/confGet app config
GET /api/exec?name=NAME&type=TYPE&exec=EXECExecute a command, where
NAME- Item nameTYPE- Item TypeEXEC- one of the commands: Start, Stop, Restart, Logs, State
Returns:
Ok-trueor, if error occurredfalseOut- command output
Example
curl "http://0.0.0.0:8855/api/exec?name=wyl&type=Docker&exec=Start"{
"Ok": true,
"Out": "wyl\n"
}⏎ GET /api/itemsGet all Items with their current states
GET /api/typesGet all Types
POST /api/confSave config variable conf. Example: data.set('conf', JSON.stringify(conf))
POST /api/itemEdit Item. Variables:
old- old Itemnew- new Item (empty Name to delete Item)
POST /api/typeEdit Type. Variables:
old- old Typenew- new Type (empty Name to delete Type)