Add product category

PENDING 8 hrs Medium 2024-08-01

User Story

  • System should provide options to create product Category.
  • System should allow admin, super admin to add product category.
  • System should allow to add image to product category.
  • Collect Basic Information.

Basic Information Need to be collected

  • Category Name (Required)
  • Description
  • Category Image (Required)

REST API

JSON Structure

[
  {
    "id": "string",
    "createdAt": "2024-08-01T13:09:21.718Z",
    "updatedAt": "2024-08-01T13:09:21.718Z",
    "name": "string",
    "images": [
      {
        "id": "string",
        "createdAt": "2024-08-01T13:09:21.718Z",
        "updatedAt": "2024-08-01T13:09:21.718Z",
        "name": "string",
        "url": "string"
      }
    ],
    "products": [
      {
        "id": "string",
        "createdAt": "2024-08-01T13:09:21.718Z",
        "updatedAt": "2024-08-01T13:09:21.718Z",
        "name": "string",
        "description": "string",
        "brand": "string",
        "model": "string",
        "make": "string",
        "quantity": 0,
        "price": 0,
        "costPrice": 0,
        "unit": "string",
        "hsnCode": "string",
        "gstPercentage": 0,
        "scanCode": "string",
        "images": [
          {
            "id": "string",
            "createdAt": "2024-08-01T13:09:21.718Z",
            "updatedAt": "2024-08-01T13:09:21.718Z",
            "name": "string",
            "url": "string"
          }
        ],
        "categories": ["string"]
      }
    ]
  }
]