@RestController @NotLogin public class NodeScriptTriggerApiController extends BaseJpomController
Constructor and Description |
---|
NodeScriptTriggerApiController(NodeScriptServer nodeScriptServer,
NodeService nodeService,
TriggerTokenLogServer triggerTokenLogServer) |
Modifier and Type | Method and Description |
---|---|
String |
trigger2(String id,
String token)
执行脚本
|
String |
triggerBatch()
构建触发器
|
checkPathSafe, pathSafe
clearResources, createMultipart, getCookieValue, getHeader, getHeaders, getIp, getMultiRequest, getObject, getParameter, getParameter, getParameterInt, getParameterInt, getParameterLong, getParameterLong, getParameters, getParametersMap, getRefererParameter, getUnescapeParameter, getUnescapeParameter, getUnescapeParameters, getXssParameter, getXssParameter, getXssParameters, hasFile, resetInfo
getApplication, getAttribute, getClientIP, getHeaderMapValues, getRequest, getRequestAttributes, getResponse, getSession, getSessionAttribute, getSessionAttributeObj, removeSessionAttribute, setAttribute, setSessionAttribute, tryGetRequestAttributes
public NodeScriptTriggerApiController(NodeScriptServer nodeScriptServer, NodeService nodeService, TriggerTokenLogServer triggerTokenLogServer)
@RequestMapping(value="/api//node_script/{id}/{token}", produces="application/json") public String trigger2(@PathVariable String id, @PathVariable String token)
id
- 构建IDtoken
- 构建的token@PostMapping(value="/api//node_script_batch", produces="application/json") public String triggerBatch()
参数 [
{
"id":"1",
"token":"a"
}
]
响应 [
{
"id":"1",
"token":"a",
"logId":"1",
"msg":"没有对应数据",
}
]
Copyright © 2017–2022. All rights reserved.