Skip to content

Commit 231d9ff

Browse files
committed
Update api.yaml examples
1 parent d6d2143 commit 231d9ff

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

gateway/examples/petstore-api.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ spec:
2222
name: PetStore API test
2323
version: v1.0
2424
context: /petstoretest
25-
upstreams:
26-
- url: http://petstore.swagger.io/v2
25+
upstream:
26+
main:
27+
url: http://petstore.swagger.io/v2
2728
policies:
2829
- name: apiKeyValidation
2930
version: v1.0.0

gateway/examples/self-signed-secure-api.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ spec:
2121
name: self-signed-api
2222
version: v1.0
2323
context: /ssa
24-
upstreams:
25-
- url: https://secure-backend:5443/api/v2
24+
upstream:
25+
main:
26+
url: https://secure-backend:5443/api/v2
2627
# - url: http://httpbin.org/anything
2728
policies:
2829
- name: JwtAuthentication

gateway/examples/weather-api.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ spec:
2222
name: Weather-API
2323
version: v1.0
2424
context: /weather/$version
25-
upstreams:
26-
- url: http://sample-backend:5000/api/v2
25+
upstream:
26+
main:
27+
url: http://sample-backend:5000/api/v2
2728
policies:
2829
- name: ModifyHeaders
2930
version: v1.0.0

0 commit comments

Comments
 (0)