Skip to content

Commit

Permalink
Chang direct go code calls to CLI calls (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisReitbauer authored Nov 13, 2021
1 parent abb071e commit a839d1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/petstore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ kubectl -n ambassador wait --for condition=available --timeout=90s deploy -lprod
Root only
```shell
# This will allow you to resolve the swagger documentation in the browser at https://localhost:8443/
go run main.go ambassador -i examples/petstore/petstore.yaml --path.base="/petstore" --path.trim_prefix="/petstore" --service.name "petstore" | kubectl apply -f -
kusk ambassador -i examples/petstore/petstore.yaml --path.base="/petstore" --path.trim_prefix="/petstore" --service.name "petstore" | kubectl apply -f -
```

CQRS Pattern
```shell
# This will allow you to resolve the swagger documentation in the browser at https://localhost:8443/
go run main.go ambassador -i examples/petstore/petstore.yaml --path.base="/" --service.name "petstore" | kubectl apply -f -
kusk ambassador -i examples/petstore/petstore.yaml --path.base="/" --service.name "petstore" | kubectl apply -f -

# This will create mappings for each route in the api
go run main.go ambassador -i examples/petstore/petstore.yaml --path.base="/petstore/api/v3" --path.trim_prefix="/petstore" --service.name "petstore" --path.split=true | kubectl apply -f -
kusk ambassador -i examples/petstore/petstore.yaml --path.base="/petstore/api/v3" --path.trim_prefix="/petstore" --service.name "petstore" --path.split=true | kubectl apply -f -
curl -kLi 'https://localhost:8443/petstore/api/v3/pet/findByStatus?status=available'
```

Expand Down

0 comments on commit a839d1c

Please sign in to comment.