12 lines
601 B
JSON
12 lines
601 B
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(curl -X POST \"http://localhost:3001/api/nodes\" -H \"Content-Type: application/json\" -d \"{\\\\\"id\\\\\":\\\\\"test_node_1\\\\\",\\\\\"label\\\\\":\\\\\"测试节点\\\\\",\\\\\"type\\\\\":\\\\\"测试类型\\\\\",\\\\\"x\\\\\":100,\\\\\"y\\\\\":200}\" -s)",
|
|
"Bash(curl -X PUT \"http://localhost:3001/api/nodes/test_node_1\" -H \"Content-Type: application/json\" -d \"{\\\\\"label\\\\\":\\\\\"更新后的测试节点\\\\\",\\\\\"x\\\\\":150}\" -s)",
|
|
"Bash(curl:*)",
|
|
"Bash(~/go/bin/swag init:*)",
|
|
"Bash(go run:*)"
|
|
]
|
|
}
|
|
}
|