Configuration Interface
get
http
### Get the specified configuration value
GET https://api.cthulhu.server/config/get?key={{key}}
Accept: application/json
list
http
### Get all configurations
GET https://api.cthulhu.server/config/list
Accept: application/json
update
http
### update configuration value by id
POST https://api.cthulhu.server/config/update
Content-Type: application/json
Accept: application/json
{
"id":{{id}},
"value":{{value}}
}
插件接口
list
http
### Get all plugin lists
GET https://api.cthulhu.server/plugin/list?key={{key}}&isEnable={{isEnable}}
Accept: application/json
enable
http
### Enable or disable plugin
GET https://api.cthulhu.server/plugin/enable?id={{id}}
Accept: application/json
del
http
### Delete plugin
GET https://api.cthulhu.server/plugin/del?id={{id}}
Accept: application/json
log
http
### Get plugin logs
GET https://api.cthulhu.server/plugin/log?id={{id}}&level={{level}}&index={{index}}
Accept: application/json
clearLog
http
### Clear plugin logs
GET https://api.cthulhu.server/plugin/clearLog?id={{id}}&level={{level}}
Accept: application/json
reload
http
### Reload plugin from installation directory
GET https://api.cthulhu.server/plugin/reload?id={{id}}
Accept: application/json
treeNames
http
### Get plugin's Tree database name list
GET https://api.cthulhu.server/plugin/treeNames?id={{id}}
Accept: application/json
treeList
http
### Get data of specified Tree database of the plugin
GET https://api.cthulhu.server/plugin/treeList?id={{id}}&tree{{tree}}
Accept: application/json
其他接口
ask
Call the server.onAsk of the specified plugin
http
### Call the onAsk interface of the specified plugin
POST https://{{id}}.plugin.cthulhu.server/server/ask?key{{key}}&scopeId={{scopeId}}
Content-Type: application/json
Accept: application/json
{
any...
}
restart
http
### Restart server
GET https://api.cthulhu.server/server/restart
downloadCa
http
### Download CA certificate
GET https://api.cthulhu.server/server/downloadCa
CthulhuRs Server web
http
### Get static resources or web pages from the workspace directory configured by the server
GET https://web.cthulhu.server/...
socket
http
### Connect to the websocket of CthulhuRs server
GET wss://socket.cthulhu.server/{{session}}/{{scopeId}}
Plugin Dynamic JS
Call the server.dynamicScript of the specified plugin
http
### Plugin Dynamic JS
GET https://{{id}}.plugin.cthulhu.server/dynamic/{{link}}
Plugin Web
Get static resources or web pages from the web.root directory of the specified plugin
http
### Access the web resources of the plugin
GET https://{{id}}.plugin.cthulhu.server/...