Browse Source

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

ngjaying 3 years ago
parent
commit
ce9672c194
2 changed files with 6 additions and 6 deletions
  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
 ```json
 {
 {
   "name":"random",
   "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.
 This API is used to print detailed definitions of external services.
 
 
 ```shell
 ```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.
 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.
 This API is used to delete external services, and all functions defined under the service will be deleted.
 
 
 ```shell
 ```shell
-DELETE http://localhost:8080/plugins/services/{name}
+DELETE http://localhost:8080/services/{name}
 ```
 ```
 
 
 ## Update external services
 ## Update external services

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

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