Skip to content

diyor200/ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ecommerce web API

  1. Getting all products # method [GET] Path: /api/products Returs : ## { "products": [ { "id": 7, "name": "Olma", "price": 10.6 } ] }

  2. Adding products method [POST] Path: /api/add/product Parameters: { "name": "Olma", "price": 10.6 }

Result: { "message": "Muvaffaqiyatli qo'shildi!" }

  1. Updating product method [POST] Path : /api/update/product Parameters: { "id": 1, "name": "yangi nok", "price": 10.5 }

Result: { "message": "Muvaffaqiyatli o'zgartirildi!" }

  1. Deleting products method [DELETE] Path: /api/delete/:id Result: {"message": "Muvaffaqiyatli o'chirildi!"}

  2. Buying Product method [POST] Path: /api/buy Parameters: { "id": id (int), "firstname": "John", "lastname": "Doe" } Result: {"message": "Muvaffaqiyatli harid qilindi!"}

  3. Getting orders excel file Path: /api/download Result: excel file

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages