bagisto / rest-api

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

Update Product API #240

Closed karan-nukani closed 7 months ago

karan-nukani commented 8 months ago

Hello, I want to update product details and I follow the swagger doc and details as below URL: localhost/deodap/bagisto/public/api/v1/admin/catalog/products/2 METHOD: POST image

i also tried with PUT method but not working...

devansh-webkul commented 7 months ago

It's a little confusing here. For Laravel to detect the PUT request you can send one more param like this, _method: PUT. From Postman when you send a direct PUT request it won't detect it from the Laravel end so for this you need to send a POST with _method: PUT when using form data.