Skip to content

cakraww/ss-restapi

Repository files navigation

#SS Rest API

Build Status

Product and Category management with hierarchical tree data for Category. Can filter based on product size, color and price range.

##Model ###Product

  • name
  • price
  • category: Category
  • sizes: [Size]
  • colors: [Color]

###ProductSize

  • size
  • product: Product

###ProductColor

  • color
  • product: Product

###Category

  • name
  • parent: Category
  • children: [Category]

##Endpoints

/products
  GET     /       getProducts(sizes, colors, priceMin, priceMax)
  GET     /:id    getProduct()
  POST    /       createProduct(name, price, sizes, colors, categoryId)
  DELETE  /:id    deleteProduct()
/categories
  GET     /       getCategories()
  GET     /:id    getCategory()
  POST    /       createCategory(name, parentId)
  DELETE  /:id    deleteCategory()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published