I followed below link to create custom api. https://belvg.com/blog/how-to-create-custom-api-in-magento-2.html.

Where 2 methods are written in that first method is working but calling rest/V1/test1 is showing error like Request does not match any route.

can anyone suggest where is wrong.

  • you should specify customer_id on calling a request /V1/test1/:param, V1/test1/{customer_id} – fmsthird Feb 1 '19 at 11:08
  • @magefms, I got the solution for it, thanks. If you can help me on this magento.stackexchange.com/questions/260079/… – jafar pinjar Feb 1 '19 at 11:13
  • great. okay I will check – fmsthird Feb 1 '19 at 11:21
  • can you try changing the type from text to varchar – fmsthird Feb 1 '19 at 11:34
  • @magefms, ok I will try it, need to change version and upgrade after that? – jafar pinjar Feb 1 '19 at 11:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.