Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1015 Bytes

ProductCatalogRequirements.md

File metadata and controls

48 lines (35 loc) · 1015 Bytes

Product catalog API application

Provide an API for

  • retrieving all products
  • add products
  • update product
  • delete product
  • buy a list of products
  • get order details
  • retrieving all products ordered by popularity

product attributes should have and not limited to:

  • id
  • nameEn
  • nameAr
  • price
  • quantity
  • image

Bonus #1

Provide an API for

  • Create categories
  • retrieving all categories
  • adding products should be to a specific category
  • retrieving all products per category

Bonus #2

Provide an API for

  • Create customer
  • Login
  • buy a list of products only if he is logged in
  • get order details for his own orders only
  • Limit quantity bought by any customer for specific products (i.e: any customer not allowed to buy "Samsung A52 Mobile" more than 4 times)

Bonus #3

Provide the ability to avail product with multiple variants. for example

  • T-shirt with 3 variants: S, M, L
  • Toy with 3 variants: red, green, blue each variant may have a different price and quantity