I'm building rest api to get products filtered by specific attribute, when I pass parameter for GET method in arabic I get

request doesn't match any route

and when I send it using POST method it works

Update: here is endpoint definition

<route url="/V1/Attributes/filter/:attribute" method="GET">
    <service class="\vendor\Attributes\Api\Attributes\MyAttributesInterface" method="getproducts"/>
        <resource ref="Vendor_Attributes::attributes"/>
  • show us your endpoint definition from webapi.xml. you can't interchange the methods. if you want to use both, you have to define both – Philipp Sander Feb 11 at 10:18
  • @PhilippSander I've updated post – Yomna Mansour Feb 11 at 10:48
  • is this your only route definition? or do you also have specified one for POST? – Philipp Sander Feb 11 at 12:57
  • @PhilippSander no, that's it only – Yomna Mansour Feb 11 at 12:59

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.