Skip to content

Latest commit

 

History

History
56 lines (43 loc) · 1 KB

test_post_coffeerun.rest

File metadata and controls

56 lines (43 loc) · 1 KB

// install the "REST Client" extension in VSCode. @baseUrl=localhost:3000

###

# add new order for double espresso POST http://{{baseUrl}}/coffeeorders HTTP/1.1 content-type: application/json

{
"coffee": "triple espresso", "emailAddress": "[email protected]", "flavor": "Pumpkin Spice", "strength": "100"

}

###

# add new order for espresso POST http://{{baseUrl}}/coffeeorders HTTP/1.1 content-type: application/json

{
"coffee": "espresso", "emailAddress": "[email protected]", "flavor": "Mocha", "strength": "80"

}

###

# add new order for americano POST http://{{baseUrl}}/coffeeorders HTTP/1.1 content-type: application/json

{
"coffee": "americano", "emailAddress": "[email protected]", "flavor": "Caramel", "strength": "60"

}

###

# add new order for earl grey POST http://{{baseUrl}}/coffeeorders HTTP/1.1 content-type: application/json

{
"coffee": "earl grey", "emailAddress": "[email protected]", "flavor": "None", "strength": "80"

}

###