Sfoglia il codice sorgente

fix(doc): fix wrong url in external service doc

ngjaying 3 anni fa
parent
commit
ce9672c194
2 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 3 3
      docs/en_US/restapi/services.md
  2. 3 3
      docs/zh_CN/restapi/services.md

+ 3 - 3
docs/en_US/restapi/services.md

@@ -20,7 +20,7 @@ An example of a request for a file on the Kuiper server:
 ```json
 {
   "name":"random",
-  "file":"file:///var/plugins/services/sample.zip"
+  "file":"file:///var/services/sample.zip"
 }
 ```
 
@@ -54,7 +54,7 @@ Response example:
 This API is used to print detailed definitions of external services.
 
 ```shell
-GET http://localhost:9081/plugins/services/{name}
+GET http://localhost:9081/services/{name}
 ```
 
 The path parameter `name` is the name of the external service.
@@ -64,7 +64,7 @@ The path parameter `name` is the name of the external service.
 This API is used to delete external services, and all functions defined under the service will be deleted.
 
 ```shell
-DELETE http://localhost:8080/plugins/services/{name}
+DELETE http://localhost:8080/services/{name}
 ```
 
 ## Update external services

+ 3 - 3
docs/zh_CN/restapi/services.md

@@ -20,7 +20,7 @@ POST http://localhost:9081/services
 ```json
 {
   "name":"random",
-  "file":"file:///var/plugins/services/sample.zip"
+  "file":"file:///var/services/sample.zip"
 }
 ```
 
@@ -54,7 +54,7 @@ GET http://localhost:9081/services
 该 API 用于打印外部服务的详细定义。
 
 ```shell
-GET http://localhost:9081/plugins/services/{name}
+GET http://localhost:9081/services/{name}
 ```
 
 路径参数 `name` 是外部服务的名称。
@@ -64,7 +64,7 @@ GET http://localhost:9081/plugins/services/{name}
 该 API 用于删除外部服务,服务之下定义的所有函数都将被删除。
 
 ```shell
-DELETE http://localhost:8080/plugins/services/{name}
+DELETE http://localhost:8080/services/{name}
 ```
 
 ## 更新外部服务