-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated curl example with new api address
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,16 +41,16 @@ genstandardFieldsproto: | |
|
||
# Call service through the micro gateway | ||
promoviaapigateway: | ||
curl --location --request POST 'http://localhost:8080/promotion/promotionSrv/getPromotions' \ | ||
curl --location --request POST 'http://localhost:8080/goTempM.api.promotion/promotionSrv/getPromotions' \ | ||
--header 'Content-Type: application/json' \ | ||
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VyIjp7ImlkIjoyMzQzNzI1MzkxMjkxNjE4MzA1LCJjb21wYW55IjoiRHVjayBJbmMuIn0sImV4cCI6MTU5NzMzNTMzNywiaWF0IjoxNTk3MjQ4OTM3LCJpc3MiOiJnb1RlbXAudXNlcnNydiJ9.QWAvvoXQHv_Cf48PTrjK9uRvrdEblNvFOxQWjNcX79U' \ | ||
--data-raw '{"name":"Promo1", "customerId": "ducksrus"}' | ||
|
||
# Call service using the micro gateway running behind the ingress in K8s | ||
authviaapigateway: | ||
curl --location --request POST 'http://goTempM.tst/user/userSrv/auth' \ | ||
--header 'Content-Type: application/json' \ | ||
--data-raw '{"pwd":"1234","email":"[email protected]"}' | ||
#authviaapigateway: | ||
# curl --location --request POST 'http://goTempM.tst/goTempM.api.user/userSrv/auth' \ | ||
# --header 'Content-Type: application/json' \ | ||
# --data-raw '{"pwd":"1234","email":"[email protected]"}' | ||
|
||
# K8s | ||
# | ||
|