Customer Mobile API for Magento 2.3
문제
I am trying to create a mobile app for a Magento 2.3 CE site, So far I have found where the Swagger documentation is and have managed to log in as a customer using the integrate endpoint.
What I don't understand is how I get the products and categories using the customer token, they all seem to require a admin token
해결책
Follow this tutorial as they have explained it very nicely
https://www.mageplaza.com/devdocs/get-all-products-orders-categories-magento-2.html
Follow the below settings to fix the API issue.
Login to Admin >> Stores >> Stores >> Settings >> Configuration >> SERVICES >> Magento Web API >> Web API Security >> Allow Anonymous Guest Access: Yes
Please Note If this does not work for you then downgrading your php version will solve the issue
Hope it helps!
Thanks.
다른 팁
First, you need to take admin token using the admin username and password. Using that token, you can get product and category.
You can check this using either swagger or postman.
I hope it helps. Thank you.