Exposing product.reviews to swelljs api #55
|
Referring to this discussion, #27 , do we have any documentation that I can follow for the API permission modification? I would like to expose the API access for product.reviews. Also, is there anyway for us to request for more data from the product api for 'swell-js'? E.g. review_rating. Thanks in advance! |
Replies: 1 comment
|
You can technically get access to any fields by adding custom permissions to a public API key. More here: https://developers.swell.is/guides/opening-content-permissions And, it's possible to include any amount of permitted data in a single request by using |
You can technically get access to any fields by adding custom permissions to a public API key. More here: https://developers.swell.is/guides/opening-content-permissions
And, it's possible to include any amount of permitted data in a single request by using
includeandexpandparameters. It works the same way on the frontend API as it does on the backend, although again it has to fit key permissions. https://developers.swell.is/backend-api/querying/expanding