Skip to content

Commit

Permalink
updated curl example with new api address
Browse files Browse the repository at this point in the history
  • Loading branch information
camba1 committed Dec 16, 2020
1 parent 9a71af1 commit af8ee12
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit af8ee12

Please sign in to comment.