-
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.
- Loading branch information
Showing
7 changed files
with
17 additions
and
121 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
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#@host = staging.daprstore.benco.io | ||
#@host = daprstore.kube.benco.io | ||
@host = localhost:9000 | ||
@user = {{user}} | ||
|
||
# =================================================================== | ||
# Products API | ||
|
@@ -27,19 +28,19 @@ GET http://{{host}}/v1.0/invoke/products/method/search/Paisley | |
# =================================================================== | ||
|
||
### Add products to cart | ||
PUT http://{{host}}/v1.0/invoke/cart/method/setProduct/00000000-1111-2222-3333-abcdef123456/prd001/6 | ||
PUT http://{{host}}/v1.0/invoke/cart/method/setProduct/{{user}}/prd001/6 | ||
|
||
### Get cart | ||
GET http://{{host}}/v1.0/invoke/cart/method/get/00000000-1111-2222-3333-abcdef123456 | ||
GET http://{{host}}/v1.0/invoke/cart/method/get/{{user}} | ||
|
||
### Clear cart | ||
PUT http://{{host}}/v1.0/invoke/cart/method/clear/00000000-1111-2222-3333-abcdef123456 | ||
PUT http://{{host}}/v1.0/invoke/cart/method/clear/{{user}} | ||
|
||
### Submit cart | ||
POST http://{{host}}/v1.0/invoke/cart/method/submit | ||
content-type: application/json | ||
|
||
"00000000-1111-2222-3333-abcdef123456" | ||
"{{user}}" | ||
|
||
|
||
|
||
|
@@ -48,10 +49,10 @@ content-type: application/json | |
# =================================================================== | ||
|
||
### Get existing order | ||
GET http://{{host}}/v1.0/invoke/orders/method/get/u3E8i | ||
GET http://{{host}}/v1.0/invoke/orders/method/get/LsWIO | ||
|
||
### Get orders for user | ||
GET http://{{host}}/v1.0/invoke/orders/method/getForUser/00000000-1111-2222-3333-abcdef123456 | ||
GET http://{{host}}/v1.0/invoke/orders/method/getForUser/{{user}} | ||
|
||
|
||
|
||
|
@@ -60,20 +61,20 @@ GET http://{{host}}/v1.0/invoke/orders/method/getForUser/00000000-1111-2222-3333 | |
# =================================================================== | ||
|
||
### Check a user | ||
GET http://{{host}}/v1.0/invoke/users/method/isregistered/00000000-1111-2222-3333-abcdef123456 | ||
GET http://{{host}}/v1.0/invoke/users/method/isregistered/{{user}} | ||
|
||
### Get a user | ||
GET http://{{host}}/v1.0/invoke/users/method/get/00000000-1111-2222-3333-abcdef123456 | ||
GET http://{{host}}/v1.0/invoke/users/method/get/{{user}} | ||
|
||
### Get a user from private endpoint | ||
GET http://{{host}}/v1.0/invoke/users/method/private/get/00000000-1111-2222-3333-abcdef123456 | ||
GET http://{{host}}/v1.0/invoke/users/method/private/get/{{user}} | ||
|
||
### Register new user | ||
POST http://{{host}}/v1.0/invoke/users/method/register | ||
content-type: application/json | ||
|
||
{ | ||
"userId": "00000000-1111-2222-3333-abcdef123456", | ||
"userId": "{{user}}", | ||
"email": "[email protected]", | ||
"displayName": "API TEST" | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
upstream dapr-sidecar { | ||
server localhost:39377; #dapr | ||
server localhost:43583; #dapr | ||
} | ||
|
||
upstream frontend-host { | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.