Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 952 Bytes

readme.MD

File metadata and controls

14 lines (10 loc) · 952 Bytes

Express expense tracker task

Your are required to create some endpoints and each endpoint must do a specific task. This project you will be adding, removing, editing and getting expenses data. Below are the endpoints and their methods that are required:

  1. /expenses GET => response should be list of expenses
  2. /expenses POST => should add to the expense list and the body should include description & amount
  3. /expense/id DELETE => should delete the specific expense by the id that is passed
  4. /expense/id PUT => should edit the specific expense and the body should include description or amount or both
  5. /expense/total GET => should return the total amount of all expenses
  6. /expense/id GET => just get one expense with that specific id passed

For number 3,4 & 6 you need to figure out the concept of params and your task is to try and figure out how to use it using the express documentation or any other resource you find.

Good Luck!