AmooAti/Antimorph-ECommerce

Create Category

Opened this issue · 0 comments

Story

As an admin, I Want to create a category

API

Method: POST
Endpoint api/admin/category
Auth: admin
Request Data:

  • id
  • name
  • slug
  • position (category order)
  • image
  • parent_id
  • status (default enable)
  • meta title (optional)
  • meta description (optional)
  • meta keywords (optional)

Response:
- Category Model

AC

  • If slug is not provided, it must be generated automatically
  • Image must be stored at public\images\categories

Checklist

  • API Doc
  • Test