Skip to main content

Practice API specification

This section provided you the instruction to run the development API locally using nodejs or docker. You may consider using JSON Sever.

Prerequisite:

  • nest cli / any web server

  • Docker (recommended)

  • To run the API locally, please install docker and run the following command:

docker-compose up -d

Install: yarn

API Usage

Functionality (for v2):

End user app:

  1. Homepage

    • Trendy collection
  2. Products

    • Get list products
    • Get list discount products
    • Products search & filtering
    • Get product details:
      • Photo list
      • Summary info
      • Details info:
        • Perspective: product perspective gallery
    • Get related products
  3. Cart

    • Cart items
    • Purchase history
    • Checkout
  4. Categories

    • Get all category
  5. Gallery

    • Get list image gallery
  6. Blogs

    • Blogs
    • Blogs Categories
    • Recently Blogs
  7. About us: timeline/static page

  8. Support

    • Mailing
  9. Utils

    • Menu
    • Address
    • Login/register
    • Authorization

Admin page:

  1. Homepage

    • Create/Edit/Delete Trendy collection
  2. Products

    • Create/Edit/Delete product
  3. Cart

    • Purchase history
    • Statistic
  4. Categories

    • Create/Edit/Delete Category
  5. Gallery

    • Create/Edit/Delete image in gallery
  6. Blogs

    • Create/Edit/Delete Blog
    • Create/Edit/Delete Blogs Categories
  7. About us:

  8. Support

    • Mailing list
  9. Utils

    • Create/Edit/Delete Menu
    • Login/register
    • Account list
    • Authorization