Skip to content

ravindrakumarkumawat/swiggy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swiggyi - Backend

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.

API

1. Restaurant

  1. registerRestaurant
    POST http://localhost:3001/api/restaurants/register 
    
  2. loginRestaurant
    POST http://localhost:3001/api/restaurants/login 
    
  3. getAllRestaurants
    GET http://localhost:3001/api/restaurants 
    
  4. getRestaurant
    GET http://localhost:3001/api/restaurants/:id  
    
  5. updateRestaurant
    PUT http://localhost:3001/api/restaurants/:id 
    
  6. deleteRestaurant
    DELETE http://localhost:3001/api/restaurants/:id 
    

Menu

  1. getAllItems
    GET http://localhost:3001/api/restaurants/:id/items
    
  2. addItem
    POST http://localhost:3001/api/restaurants/:id/items 
    
  3. updateItem
    PATCH http://localhost:3001/api/restaurants/:id/items
    
  4. deleteItem
    DELETE http://localhost:3001/api/restaurants/:id/items 
    

Order

  1. getAllOrders
    GET http://localhost:3001/api/restaurants/:id/orders
    

2. Customer

  1. getAllCustomers
    GET http://localhost:3001/api/customers
    
  2. registerCustomer
    POST http://localhost:3001/api/customers/register 
    
  3. loginCustomer
    POST http://localhost:3001/api/customers/login 
    
  4. updateCustomer
    PATCH http://localhost:3001/api/customers/:id
    
  5. deleteItem
    DELETE http://localhost:3001/api/customers/:id
    

Order

  1. getAllOrders
    GET http://localhost:3001/api/customers/:id/orders
    
  2. addOrder
    POST http://localhost:3001/api/customers/:id/orders
    

3. Delivery Partner

  1. getAllDeliveryPartners
    GET http://localhost:3001/api/deliverypartners
    
  2. registerDeliveryPartner
    POST http://localhost:3001/api/deliverypartners/register 
    
  3. loginDeliveryPartner
    POST http://localhost:3001/api/deliverypartners/login 
    
  4. updateDeliveryPartner
    PUT http://localhost:3001/api/deliverypartners/:id 
    
  5. deleteDeliveryPartner
    DELETE http://localhost:3001/api/deliverypartners/:id 
    

About

Swiggyi is an online food ordering and delivery platform.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages