create new rest api using magento 2

app/code/AlanKent/CalculatorWebService/etc/module.xml app/code/AlanKent/CalculatorWebService/etc/di.xml app/code/AlanKent/CalculatorWebService/etc/webapi.xml app/code/AlanKent/CalculatorWebService/Api/CalculatorInterface.php app/code/AlanKent/CalculatorWebService/Model/Calculator.php

then execute http://mydomain/index.php/rest/V1/calculator/add/2/3

but i got "Request does not match any route."

I am new to magento 2 . Any one can help me

  • i think you are following this guide.. alankent.me/2015/07/24/… please people here are not soothsayer. If you read carefully its a GET request. – 95623 Sep 28 '16 at 17:01

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.