bagisto / rest-api

Bagisto REST API provides powerful and flexible endpoints to manage e-commerce operations, including products, orders, customers, and more.
21 stars 23 forks source link

When we create new product then received data shows a null value in sku param #205

Closed komal-sh-27 closed 7 months ago

komal-sh-27 commented 7 months ago

When we create new product then received data shows a null value in sku param

How To Reproduce:

Step 1: Go to the postman side, add new product create api like this:

POST
[/api/v1/admin/catalog/products]

Add this data like this in raw tab json format:

{
  "type": "simple",
  "attribute_family_id": 1,
  "sku": "fruits1"
}

Step 2: Now hit request and product created successfully, but received data sku field shows a null value instead of sku value:

Screenshot from 2024-01-24 11-02-32

Possible Solution:

If we have created a new product then received data so here sku value should be same we have added in given data.

komal-sh-27 commented 7 months ago

I have checked after new changes, now sku value is received in data given content.

Screenshot from 2024-01-31 18-17-22

So, i am closing this issue.