API for Add, GET, Update, Delete Coupons in Typescript as required for the assignment.
-
Run the code: _ npm run dev _
-
Get All Coupons List: _ curl http://localhost:3000/api/coupons _
-
Get A Single Coupon: _ curl http://localhost:3000/api/coupons/2 _
- Delete the Coupon: _ curl -X DELETE http://localhost:3000/api/coupons/2 _