Loom Demo Video:- https://www.loom.com/share/83da534c108d42079b73813a268cbe92?sid=372796b4-7e85-48d8-add3-f8c143dd0bd0
-
GET list of all coffees:-
-
GET Details of particular coffee:-
-
POST new coffee (same coffeeId can't be posted twice):-
- url:- https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee
- body:- { "coffeeId": "coffee108", "name": "Special Coffee", "price": "$45", "available": "true" }
-
PUT update existing coffee's name, price or availability
- url:- https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee/coffee108
- body:- { "name": "Super Special Coffee", "price": "$54", "available": "true" }
-
DELETE existing coffee
endpoints:
- GET - https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee
- GET - https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee/{id}
- POST - https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee
- PUT - https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee/{id}
- DELETE - https://pob4m0z6jk.execute-api.us-east-1.amazonaws.com/coffee/{id}
functions:
- getCoffee:CRUD-APP-dev-getCoffee
- createCoffee:CRUD-APP-dev-createCoffee
- updateCoffee:CRUD-APP-dev-updateCoffee
- deleteCoffee: CRUD-APP-dev-deleteCoffee
Test Endpoint with Authentication added for getCoffeeByID route.