You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/08/29 03:12:00 UTC
[dubbo-go-pixiu] 01/01: onAir -> Enable
This is an automated email from the ASF dual-hosted git repository.
alexstocks pushed a commit to branch fix/onair
in repository https://gitbox.apache.org/repos/asf/dubbo-go-pixiu.git
commit 7034bf794816ff8545d8092999e8b6f4db1d7cdf
Author: yuyu.zx <yu...@alipay.com>
AuthorDate: Sun Aug 29 11:09:40 2021 +0800
onAir -> Enable
---
configs/api_config.yaml | 8 ++++----
docs/sample/dubbo-body(http).md | 4 ++--
docs/sample/dubbo-body.md | 8 ++++----
docs/sample/dubbo-mix.md | 8 ++++----
docs/sample/dubbo-multi.md | 10 +++++-----
docs/sample/dubbo-query(http).md | 2 +-
docs/sample/dubbo-query.md | 8 ++++----
docs/sample/dubbo-universality.md | 4 ++--
docs/sample/dubbo-uri.md | 8 ++++----
docs/sample/http-body.md | 2 +-
docs/sample/http-query.md | 4 ++--
docs/sample/http-uri.md | 8 ++++----
docs/sample/mock.md | 4 ++--
docs/sample/zh-cn/dubbo-body.md | 8 ++++----
docs/sample/zh-cn/dubbo-mix.md | 8 ++++----
docs/sample/zh-cn/dubbo-multi.md | 10 +++++-----
docs/sample/zh-cn/dubbo-query.md | 8 ++++----
docs/sample/zh-cn/dubbo-universality.md | 4 ++--
docs/sample/zh-cn/dubbo-uri.md | 8 ++++----
docs/user/api.md | 4 ++--
pkg/common/mock/router.go | 2 +-
pkg/config/mock/api_config.yml | 10 +++++-----
pkg/filter/header/header_test.go | 2 +-
pkg/filter/http/apiconfig/api_config.go | 2 +-
pkg/router/route_test.go | 2 +-
samples/dubbogo/http/pixiu/api_config.yaml | 4 ++--
samples/dubbogo/multi/apiconfig/api_config.yaml | 10 +++++-----
samples/dubbogo/simple/body/pixiu/api_config.yaml | 8 ++++----
samples/dubbogo/simple/mix/pixiu/api_config.yaml | 8 ++++----
samples/dubbogo/simple/proxy/pixiu/api_config.yaml | 4 ++--
samples/dubbogo/simple/query/pixiu/api_config.yaml | 8 ++++----
samples/dubbogo/simple/uri/api_config.yaml | 8 ++++----
samples/dubbogo/simple/uri/pixiu/api_config.yaml | 8 ++++----
33 files changed, 102 insertions(+), 102 deletions(-)
diff --git a/configs/api_config.yaml b/configs/api_config.yaml
index b258edc..e8696c5 100644
--- a/configs/api_config.yaml
+++ b/configs/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -41,7 +41,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -62,7 +62,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -88,7 +88,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
diff --git a/docs/sample/dubbo-body(http).md b/docs/sample/dubbo-body(http).md
index 21b3780..4e0caab 100644
--- a/docs/sample/dubbo-body(http).md
+++ b/docs/sample/dubbo-body(http).md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -56,4 +56,4 @@ curl host:port/api/v1/test-dubbo/user -X POST -d '{"name": "tiecheng","id": "000
{
"message": "data is exist"
}
-```
\ No newline at end of file
+```
diff --git a/docs/sample/dubbo-body.md b/docs/sample/dubbo-body.md
index 8d81420..175f6f4 100644
--- a/docs/sample/dubbo-body.md
+++ b/docs/sample/dubbo-body.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
@@ -32,7 +32,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
@@ -53,7 +53,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -126,4 +126,4 @@ result
true
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/dubbo-mix.md b/docs/sample/dubbo-mix.md
index b4b4119..1aca614 100644
--- a/docs/sample/dubbo-mix.md
+++ b/docs/sample/dubbo-mix.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -35,7 +35,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -59,7 +59,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -112,4 +112,4 @@ result
true
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/dubbo-multi.md b/docs/sample/dubbo-multi.md
index e7a6ed8..ee5a1f9 100644
--- a/docs/sample/dubbo-multi.md
+++ b/docs/sample/dubbo-multi.md
@@ -17,7 +17,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -34,7 +34,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -60,7 +60,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -77,7 +77,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -205,4 +205,4 @@ and
}
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/dubbo-query(http).md b/docs/sample/dubbo-query(http).md
index 925cf8b..a926e47 100644
--- a/docs/sample/dubbo-query(http).md
+++ b/docs/sample/dubbo-query(http).md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
diff --git a/docs/sample/dubbo-query.md b/docs/sample/dubbo-query.md
index 52b7542..6bc7149 100644
--- a/docs/sample/dubbo-query.md
+++ b/docs/sample/dubbo-query.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -36,7 +36,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -60,7 +60,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -118,4 +118,4 @@ result
}
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/dubbo-universality.md b/docs/sample/dubbo-universality.md
index 8a716a8..bac0571 100644
--- a/docs/sample/dubbo-universality.md
+++ b/docs/sample/dubbo-universality.md
@@ -17,7 +17,7 @@ resources:
description: common
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -195,4 +195,4 @@ request body
Please pay attention to the special situation of configuration the degrees of freedom is not very high, if can't meet the scene, please mention [issue](https://github.com/dubbogo/dubbo-go-proxy/issues), thank you.
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/dubbo-uri.md b/docs/sample/dubbo-uri.md
index de7988f..26d09db 100644
--- a/docs/sample/dubbo-uri.md
+++ b/docs/sample/dubbo-uri.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -39,7 +39,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -63,7 +63,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -129,4 +129,4 @@ result
}
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/http-body.md b/docs/sample/http-body.md
index dc54b18..038ff2b 100644
--- a/docs/sample/http-body.md
+++ b/docs/sample/http-body.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
diff --git a/docs/sample/http-query.md b/docs/sample/http-query.md
index f0f53ce..77452b7 100644
--- a/docs/sample/http-query.md
+++ b/docs/sample/http-query.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -27,7 +27,7 @@ resources:
host: "127.0.0.1:1314"
path: "/user"
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
diff --git a/docs/sample/http-uri.md b/docs/sample/http-uri.md
index 60647b4..1a4e921 100644
--- a/docs/sample/http-uri.md
+++ b/docs/sample/http-uri.md
@@ -26,7 +26,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -38,7 +38,7 @@ resources:
host: "127.0.0.1:1314"
path: "/user"
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
@@ -52,7 +52,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -67,7 +67,7 @@ resources:
host: "127.0.0.1:1314"
path: "/user/:name"
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
diff --git a/docs/sample/mock.md b/docs/sample/mock.md
index fd1b01b..50214bc 100644
--- a/docs/sample/mock.md
+++ b/docs/sample/mock.md
@@ -13,7 +13,7 @@ resources:
description: mock
methods:
- httpVerb: GET
- onAir: true
+ enable: true
mock: true
timeout: 1000ms
inboundRequest:
@@ -38,4 +38,4 @@ curl localhost:8888/api/v1/test-dubbo/mock -X GET
We plan use can config custom result in the future. Not only api config way, but also create a match rule.
-[Previous](./README.md)
\ No newline at end of file
+[Previous](./README.md)
diff --git a/docs/sample/zh-cn/dubbo-body.md b/docs/sample/zh-cn/dubbo-body.md
index e0f3745..68d0c79 100644
--- a/docs/sample/zh-cn/dubbo-body.md
+++ b/docs/sample/zh-cn/dubbo-body.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
@@ -32,7 +32,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 10s
inboundRequest:
requestType: http
@@ -53,7 +53,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -126,4 +126,4 @@ curl host:port/api/v1/test-dubbo/user2 -X PUT -d '{"name":"tc","user":{"id":"000
true
```
-[上一页](./dubbo.md)
\ No newline at end of file
+[上一页](./dubbo.md)
diff --git a/docs/sample/zh-cn/dubbo-mix.md b/docs/sample/zh-cn/dubbo-mix.md
index cce31cb..632863c 100644
--- a/docs/sample/zh-cn/dubbo-mix.md
+++ b/docs/sample/zh-cn/dubbo-mix.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -35,7 +35,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -59,7 +59,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -112,4 +112,4 @@ curl localhost:port/api/v1/test-dubbo/user?name=tc -X PUT -d '{"id":"0001","code
true
```
-[上一页](./dubbo.md)
\ No newline at end of file
+[上一页](./dubbo.md)
diff --git a/docs/sample/zh-cn/dubbo-multi.md b/docs/sample/zh-cn/dubbo-multi.md
index 416e6ac..e4330bd 100644
--- a/docs/sample/zh-cn/dubbo-multi.md
+++ b/docs/sample/zh-cn/dubbo-multi.md
@@ -17,7 +17,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -34,7 +34,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -60,7 +60,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -77,7 +77,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -205,4 +205,4 @@ and
}
```
-[Previous](./dubbo.md)
\ No newline at end of file
+[Previous](./dubbo.md)
diff --git a/docs/sample/zh-cn/dubbo-query.md b/docs/sample/zh-cn/dubbo-query.md
index c3263bf..1d63348 100644
--- a/docs/sample/zh-cn/dubbo-query.md
+++ b/docs/sample/zh-cn/dubbo-query.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -36,7 +36,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -60,7 +60,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -118,4 +118,4 @@ curl localhost:port/api/v1/test-dubbo/userByNameAndAge?name=tc&age=99 -X GET
}
```
-[上一页](./dubbo.md)
\ No newline at end of file
+[上一页](./dubbo.md)
diff --git a/docs/sample/zh-cn/dubbo-universality.md b/docs/sample/zh-cn/dubbo-universality.md
index a510899..8a5140d 100644
--- a/docs/sample/zh-cn/dubbo-universality.md
+++ b/docs/sample/zh-cn/dubbo-universality.md
@@ -17,7 +17,7 @@ resources:
description: common
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -202,4 +202,4 @@ Dubbo 接口配置 `ReferenceConfig#InterfaceName`。
请注意这种特殊情况的配置目前自由度不是很高,如果有不能满足的场景请及时反馈到[问题](https://github.com/dubbogo/dubbo-go-proxy/issues)
-[上一页](./dubbo.md)
\ No newline at end of file
+[上一页](./dubbo.md)
diff --git a/docs/sample/zh-cn/dubbo-uri.md b/docs/sample/zh-cn/dubbo-uri.md
index b0f0f6f..2a79a82 100644
--- a/docs/sample/zh-cn/dubbo-uri.md
+++ b/docs/sample/zh-cn/dubbo-uri.md
@@ -15,7 +15,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -39,7 +39,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -63,7 +63,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -129,4 +129,4 @@ curl localhost:port/api/v1/test-dubbo/user/name/tc/age/99 -X GET
}
```
-[上一页](./dubbo.md)
\ No newline at end of file
+[上一页](./dubbo.md)
diff --git a/docs/user/api.md b/docs/user/api.md
index 17734c2..8a860e2 100644
--- a/docs/user/api.md
+++ b/docs/user/api.md
@@ -20,7 +20,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
inboundRequest:
requestType: http
queryStrings:
@@ -87,7 +87,7 @@ httpVerb
:
> The http method, accept GET/POST/PUT/DELETE/OPTIONS/PATCH/HEAD/HEAD/ANY(Not supported yet)
-onAir
+enable
:
> Defines the API is online/offline. true -> online, false -> offline. When the API is offline, it returns 406.
diff --git a/pkg/common/mock/router.go b/pkg/common/mock/router.go
index 52af6a7..dd26de2 100644
--- a/pkg/common/mock/router.go
+++ b/pkg/common/mock/router.go
@@ -27,7 +27,7 @@ func GetMockAPI(verb config.HTTPVerb, urlPattern string, filters ...string) rout
inbound := config.InboundRequest{}
integration := config.IntegrationRequest{RequestType: config.DubboRequest}
method := config.Method{
- OnAir: true,
+ Enable: true,
HTTPVerb: verb,
InboundRequest: inbound,
IntegrationRequest: integration,
diff --git a/pkg/config/mock/api_config.yml b/pkg/config/mock/api_config.yml
index 0e15587..81d7e85 100644
--- a/pkg/config/mock/api_config.yml
+++ b/pkg/config/mock/api_config.yml
@@ -24,7 +24,7 @@ resources:
description: resource documentation
methods:
- httpVerb: GET
- onAir: true
+ enable: true
inboundRequest:
requestType: http
headers:
@@ -55,7 +55,7 @@ resources:
description: mockTest
methods:
- httpVerb: GET
- onAir: true
+ enable: true
inboundRequest:
requestType: http
headers:
@@ -82,7 +82,7 @@ resources:
- java.lang.String
clusterName: test_dubbo
- httpVerb: POST
- onAir: true
+ enable: true
inboundRequest:
requestType: http
headers:
@@ -112,7 +112,7 @@ resources:
description: resource documentation
methods:
- httpVerb: GET
- onAir: true
+ enable: true
inboundRequest:
requestType: http
headers:
@@ -151,4 +151,4 @@ definitions:
"type" : "number"
}
}
- }
\ No newline at end of file
+ }
diff --git a/pkg/filter/header/header_test.go b/pkg/filter/header/header_test.go
index b6839d4..32eb76e 100644
--- a/pkg/filter/header/header_test.go
+++ b/pkg/filter/header/header_test.go
@@ -73,7 +73,7 @@ func getMockMethod(verb config.HTTPVerb) config.Method {
inbound := config.InboundRequest{}
integration := config.IntegrationRequest{}
return config.Method{
- OnAir: true,
+ Enable: true,
HTTPVerb: verb,
InboundRequest: inbound,
IntegrationRequest: integration,
diff --git a/pkg/filter/http/apiconfig/api_config.go b/pkg/filter/http/apiconfig/api_config.go
index 289a525..4fa31ba 100644
--- a/pkg/filter/http/apiconfig/api_config.go
+++ b/pkg/filter/http/apiconfig/api_config.go
@@ -99,7 +99,7 @@ func (f *Filter) Handle(ctx *contexthttp.HttpContext) {
return
}
- if !api.Method.OnAir {
+ if !api.Method.Enable {
if _, err := ctx.WriteWithStatus(http.StatusNotAcceptable, constant.Default406Body); err != nil {
logger.Errorf("WriteWithStatus fail: %v", err)
}
diff --git a/pkg/router/route_test.go b/pkg/router/route_test.go
index 31f0240..fe4d414 100644
--- a/pkg/router/route_test.go
+++ b/pkg/router/route_test.go
@@ -34,7 +34,7 @@ func getMockMethod(verb config.HTTPVerb) config.Method {
inbound := config.InboundRequest{}
integration := config.IntegrationRequest{}
return config.Method{
- OnAir: true,
+ Enable: true,
HTTPVerb: verb,
InboundRequest: inbound,
IntegrationRequest: integration,
diff --git a/samples/dubbogo/http/pixiu/api_config.yaml b/samples/dubbogo/http/pixiu/api_config.yaml
index ad466ed..64ccdbf 100644
--- a/samples/dubbogo/http/pixiu/api_config.yaml
+++ b/samples/dubbogo/http/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -42,7 +42,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
diff --git a/samples/dubbogo/multi/apiconfig/api_config.yaml b/samples/dubbogo/multi/apiconfig/api_config.yaml
index 34c937c..5d9535c 100644
--- a/samples/dubbogo/multi/apiconfig/api_config.yaml
+++ b/samples/dubbogo/multi/apiconfig/api_config.yaml
@@ -26,7 +26,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -43,7 +43,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -69,7 +69,7 @@ resources:
- filter0
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -86,7 +86,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -104,4 +104,4 @@ resources:
method: "UpdateTeacherByName"
group: "test"
version: 1.0.0
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"
diff --git a/samples/dubbogo/simple/body/pixiu/api_config.yaml b/samples/dubbogo/simple/body/pixiu/api_config.yaml
index 09b94ce..e2e590e 100644
--- a/samples/dubbogo/simple/body/pixiu/api_config.yaml
+++ b/samples/dubbogo/simple/body/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -41,7 +41,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -62,7 +62,7 @@ resources:
description: user
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -88,7 +88,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
diff --git a/samples/dubbogo/simple/mix/pixiu/api_config.yaml b/samples/dubbogo/simple/mix/pixiu/api_config.yaml
index 9900188..783b59d 100644
--- a/samples/dubbogo/simple/mix/pixiu/api_config.yaml
+++ b/samples/dubbogo/simple/mix/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -44,7 +44,7 @@ resources:
version: 1.0.0
clusterName: "test_dubbo"
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -70,7 +70,7 @@ resources:
- filter0
methods:
- httpVerb: PUT
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -88,4 +88,4 @@ resources:
method: "UpdateUserByName"
group: "test"
version: 1.0.0
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"
diff --git a/samples/dubbogo/simple/proxy/pixiu/api_config.yaml b/samples/dubbogo/simple/proxy/pixiu/api_config.yaml
index b2d66fb..cb52b3e 100644
--- a/samples/dubbogo/simple/proxy/pixiu/api_config.yaml
+++ b/samples/dubbogo/simple/proxy/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: common
methods:
- httpVerb: POST
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -45,4 +45,4 @@ resources:
mapTo: opt.group
- name: queryStrings.version
mapTo: opt.version
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"
diff --git a/samples/dubbogo/simple/query/pixiu/api_config.yaml b/samples/dubbogo/simple/query/pixiu/api_config.yaml
index a1f16c9..88d526d 100644
--- a/samples/dubbogo/simple/query/pixiu/api_config.yaml
+++ b/samples/dubbogo/simple/query/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -45,7 +45,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -69,7 +69,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -84,4 +84,4 @@ resources:
method: "GetUserByCode"
group: "test"
version: 1.0.0
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"
diff --git a/samples/dubbogo/simple/uri/api_config.yaml b/samples/dubbogo/simple/uri/api_config.yaml
index f1aee56..4c3f55e 100644
--- a/samples/dubbogo/simple/uri/api_config.yaml
+++ b/samples/dubbogo/simple/uri/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -48,7 +48,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -72,7 +72,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -95,4 +95,4 @@ resources:
method: "GetUserByNameAndAge"
group: "test"
version: 1.0.0
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"
diff --git a/samples/dubbogo/simple/uri/pixiu/api_config.yaml b/samples/dubbogo/simple/uri/pixiu/api_config.yaml
index f1effb9..7866c66 100644
--- a/samples/dubbogo/simple/uri/pixiu/api_config.yaml
+++ b/samples/dubbogo/simple/uri/pixiu/api_config.yaml
@@ -24,7 +24,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -48,7 +48,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -72,7 +72,7 @@ resources:
description: user
methods:
- httpVerb: GET
- onAir: true
+ enable: true
timeout: 1000ms
inboundRequest:
requestType: http
@@ -95,4 +95,4 @@ resources:
method: "GetUserByNameAndAge"
group: "test"
version: 1.0.0
- clusterName: "test_dubbo"
\ No newline at end of file
+ clusterName: "test_dubbo"