-
Notifications
You must be signed in to change notification settings - Fork 20
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
1 parent
03160ad
commit 962fd9f
Showing
1 changed file
with
26 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
### Search for products containing "plastic" | ||
GET http://localhost:8081/products/?query=plastic | ||
|
||
### Search for products containing "monitor" | ||
GET http://localhost:8081/products/?query=monitor | ||
|
||
### Invalid search (search query too short) | ||
GET http://localhost:8081/products/?query=x | ||
|
||
### Get cart | ||
GET http://localhost:8081/carts/61157 | ||
|
||
### Add "Plastic Sheeting" to cart | ||
POST http://localhost:8081/carts/61157/line-items?productId=TTKQ8NJZ&quantity=20 | ||
|
||
### Add "27-Inch Curved Computer Monitor" to cart | ||
POST http://localhost:8081/carts/61157/line-items?productId=K3SR7PBX&quantity=2 | ||
|
||
### Add "Dual Monitor Desk Mount" to cart | ||
POST http://localhost:8081/carts/61157/line-items?productId=Q3W43CNC&quantity=1 | ||
|
||
### Add "50ft Led Lights" to cart | ||
POST http://localhost:8081/carts/61157/line-items?productId=WM3BPG3E&quantity=3 | ||
|
||
### Empty cart | ||
DELETE http://localhost:8081/carts/61157 |