Skip to content

Re-model API

Nihar Parikh requested to merge RE-modelAPI into RE-modelOrder

The API was created with the new Order model. The project was organized by putting all the api routes in the routes folder. In our case, currently, it is only "orders". The default route path used is /api/orders/.... The routes created are to:

  1. GET Introduction Page (/api)
  2. POST Add a order (/post)
  3. GET Get all orders (/get)
  4. GET Get a specific order by ID (/get/:orderID)
  5. GET Get all orders place by a specific email (user) (/get/email/:emailID)
  6. GET Get all orders placed on a exact given date and time (/get/date/:orderDate)
  7. DELETE Delete a specific order by ID (/delete/:orderID)

Closes #16 (closed)

Edited by Nihar Parikh

Merge request reports