add sql api config (#222)

Reviewed-on: https://git.infini.ltd/infini/console/pulls/222
Co-authored-by: liugq <silenceqi@hotmail.com>
Co-committed-by: liugq <silenceqi@hotmail.com>
This commit is contained in:
liugq 2023-11-08 09:46:25 +08:00 committed by medcl
parent 9a2898eb2a
commit e9f76271f0
2 changed files with 19 additions and 9 deletions

View File

@ -1,10 +1,10 @@
package config
const LastCommitLog = "90dc208fb713ff5fab513c0d29e6ce26825b4395"
const BuildDate = "2023-08-05T09:14:11Z"
const LastCommitLog = "N/A"
const BuildDate = "N/A"
const EOLDate = "2023-12-31T10:10:10Z"
const EOLDate = "N/A"
const Version = "1.0.0_SNAPSHOT"
const Version = "0.0.1-SNAPSHOT"
const BuildNumber = "001"
const BuildNumber = "001"

View File

@ -462,16 +462,26 @@
"tasks": [
{"name": "tasks.*", "methods": ["*"],
"path": "/tasks/*"
"path": "/_tasks/*"
},
{"name": "tasks.list", "methods": ["get"],
"path": "/tasks"
"path": "/_tasks"
},
{"name": "tasks.cancel", "methods": ["post"],
"path": "/tasks/:task_id/_cancel"
"path": "/_tasks/:task_id/_cancel"
},
{"name": "tasks.get", "methods": ["get"],
"path": "/tasks/:task_id"
"path": "/_tasks/:task_id"
}
],
"sql": [
{"name": "sql.*", "methods": ["*"], "path": "/_sql/*"},
{"name": "sql.clear", "methods": ["post"], "path": "/_sql/close"},
{"name": "sql.get_async", "methods": ["get"], "path": "/_sql/async/:search_id"},
{"name": "sql.delete_async", "methods": ["delete"], "path": "/_sql/async/delete/:search_id"},
{"name": "sql.get_async_status", "methods": ["get"], "path": "/_sql/async/status/:search_id"},
{"name": "sql.search", "methods": ["get", "post"], "path": "/_sql"},
{"name": "sql.search", "methods": ["post"], "path": "/_plugins/_sql"},
{"name": "sql.translate", "methods": ["get", "post"], "path": "/_sql/translate"}
]
}