Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Added scope 'orders' and 'carts'.
Browse files Browse the repository at this point in the history
  • Loading branch information
malagappan committed Sep 20, 2016
1 parent 9567e3b commit c613fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gateway/setup/api-products.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ echo "${SETUP_RESULT}"
echo ""

### products
SETUP_RESULT=`curl -u "${ADMIN_EMAIL}:${APW}" -X POST "${URI}/v1/o/${ORG}/apiproducts" -H "Content-Type: application/json" -d '{"approvalType":"auto", "displayName":"Retail APIs","name":"Retail_APIs","environments":["test","prod"],"scopes":["openid"], "proxies":["oauth", "carts", "collections", "locations", "orders", "products", "search", "skus", "userinfo"]}' 1>&2`
SETUP_RESULT=`curl -u "${ADMIN_EMAIL}:${APW}" -X POST "${URI}/v1/o/${ORG}/apiproducts" -H "Content-Type: application/json" -d '{"approvalType":"auto", "displayName":"Retail APIs","name":"Retail_APIs","environments":["test","prod"],"scopes":["openid","orders","carts"], "proxies":["oauth", "carts", "collections", "locations", "orders", "products", "search", "skus", "userinfo"]}' 1>&2`
echo "${SETUP_RESULT}"
echo ""

Expand Down

0 comments on commit c613fd2

Please sign in to comment.