Closed vimal-360 closed 2 years ago
Hi @vimal-360,
We currently don't have active support on that post endpoint. Only to pull all (index via GET) categories; feel free to send a PR.
The protected post method is intentional; these are for custom endpoints. I would not recommend your method for making API calls. Please refer to the documentation. If you need a workaround for posting to categories, you could use Laravel's HTTP client to make a post request to your endpoint.
Something like this:
$response = Http::post('http://my-magento-shop.com/rest/default/V1/categories/', $payload);
Thanks
Hello.
I am trying to post categories to magento using laravel. I found that this
post
,put
,delete
methods are protected. I can not use. Is there any other way? or why it isprotected