Swiggyi is an online food ordering and delivery platform. In this I am creating the API's for Restaurant Partner, Customer, Order, and Delivery Partner.
-
registerRestaurant
POST http://localhost:3001/api/restaurants/register
-
loginRestaurant
POST http://localhost:3001/api/restaurants/login
-
getAllRestaurants
GET http://localhost:3001/api/restaurants
-
getRestaurant
GET http://localhost:3001/api/restaurants/:id
-
updateRestaurant
PUT http://localhost:3001/api/restaurants/:id
-
deleteRestaurant
DELETE http://localhost:3001/api/restaurants/:id
-
getAllItems
GET http://localhost:3001/api/restaurants/:id/items
-
addItem
POST http://localhost:3001/api/restaurants/:id/items
-
updateItem
PATCH http://localhost:3001/api/restaurants/:id/items
-
deleteItem
DELETE http://localhost:3001/api/restaurants/:id/items
-
getAllOrders
GET http://localhost:3001/api/restaurants/:id/orders
-
getAllCustomers
GET http://localhost:3001/api/customers
-
registerCustomer
POST http://localhost:3001/api/customers/register
-
loginCustomer
POST http://localhost:3001/api/customers/login
-
updateCustomer
PATCH http://localhost:3001/api/customers/:id
-
deleteItem
DELETE http://localhost:3001/api/customers/:id
-
getAllOrders
GET http://localhost:3001/api/customers/:id/orders
-
addOrder
POST http://localhost:3001/api/customers/:id/orders
-
getAllDeliveryPartners
GET http://localhost:3001/api/deliverypartners
-
registerDeliveryPartner
POST http://localhost:3001/api/deliverypartners/register
-
loginDeliveryPartner
POST http://localhost:3001/api/deliverypartners/login
-
updateDeliveryPartner
PUT http://localhost:3001/api/deliverypartners/:id
-
deleteDeliveryPartner
DELETE http://localhost:3001/api/deliverypartners/:id