Magento 2 API: How do I list products as a customer or anonymous user -


i'm build mobile app uses magento 2 rest api. in can add products cart , complete order. seems me cant list products or categories customer or guest user. admin can that. error get

{   "message": "consumer not authorized access %resources",   "parameters": {     "resources": "magento_catalog::categories"   } } 

is there way can use "/v1/products" api customer or guest?

i guess other option have build own customer api lists products/categories anonymous users.

there specific settings allow anonymous user access hidden rest api endpoints:

configuration > services > magento web api > web api security. select yes allow anonymous guest access menu.

reference: http://devdocs.magento.com/guides/v2.0/rest/anonymous-api-security.html


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -