You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this issue.
Did you figure out the error? It looks like a 401 which doesn't have to do anything with the fos output configuration or the format 'html' not supported.
But nevertheless the /shop-api/products/by-code route should not be protected by any authorization what so ever. This might be because of a missing setting in the security.yaml file.
Since you mentioned API platform. If you are starting a new project with Sylius and an API it is recommended to use the api platform integration of the project instead of this package.
When I try to retrieve data with A GET request (ex:
/shop-api/products/by-code/abc
), I'm getting this response from the API :Here's my configuration in
config/packages/_sylius_shop_api.yaml
:As you can see, the file is as described in the README of the package.
I tried everything I saw on Stackoverflow (related to api_platform) and none of those solutions worked.
The text was updated successfully, but these errors were encountered: