// install the "REST Client" extension in VSCode. @baseUrl=co.audstanley.com
GET http://{{baseUrl}}/coffeeorders HTTP/1.1
###
POST http://{{baseUrl}}/coffeeorders HTTP/1.1 content-type: application/json
- {
- "coffee": "Richard Stanley", "email": "[email protected]", "flavor": "Pumpkin Spice", "strength": "100"
}
###
# deletes all the orders from the collection DELETE http://{{baseUrl}}/coffeeorders HTTP/1.1
###
GET http://{{baseUrl}}/coffeeorders/[email protected] HTTP/1.1
###
PUT http://{{baseUrl}}/coffeeorders/[email protected] HTTP/1.1 content-type: application/json
- {
- "coffee": "Richard Stanley", "email": "[email protected]", "flavor": "Vanilla", "strength": "0"
}
###
# only delete audstanley's last order DELETE http://{{baseUrl}}/coffeeorders/[email protected] HTTP/1.1