From 4356ac4ddfffb4ab1121a4b0a531a7c3e2ffa46b Mon Sep 17 00:00:00 2001 From: liugq Date: Wed, 27 Sep 2023 15:59:45 +0800 Subject: [PATCH] add missing es doc api path (#170) Reviewed-on: https://git.infini.ltd:64443/infini/console/pulls/170 Co-authored-by: liugq Co-committed-by: liugq --- config/permission.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config/permission.json b/config/permission.json index 63426b91..1a7cf336 100644 --- a/config/permission.json +++ b/config/permission.json @@ -293,9 +293,15 @@ {"name": "doc.update", "methods": ["put"], "path": "/:index_name/:doctype/:doc_id" }, + {"name": "doc.update", "methods": ["post"], + "path": "/:index_name/_update/:doc_id" + }, {"name": "doc.create", "methods": ["post"], "path": "/:index_name/:doctype" }, + {"name": "doc.create", "methods": ["post", "put"], + "path": "/:index_name/_create/:doc_id" + }, {"name": "doc.delete", "methods": ["delete"], "path": "/:index_name/:doctype/:doc_id" @@ -303,6 +309,9 @@ {"name": "doc.get", "methods": ["get"], "path": "/:index_name/:doctype/:doc_id" }, + {"name": "doc.get", "methods": ["get"], + "path": "/:index_name/_source/:doc_id" + }, {"name": "doc.exists", "methods": ["head"], "path": "/:index_name/:doctype/:doc_id" },