Skip to content

Commit

Permalink
Add sample request
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenWoltmann committed Jun 23, 2023
1 parent 03160ad commit 962fd9f
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions doc/sample-requests.http
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

0 comments on commit 962fd9f

Please sign in to comment.