4

How can i create the base url for magento.

I have this error when i hit the url to get the order can some help me to find out the solution. I am using oauth authentication

{
  "message": "Request does not match any route.",
  "trace": null
}

url : http://sca.followthetiger.com/api/rest/order and pass the consumer key and all in header.

  • You can create Rest API module by following this tutorial. inchoo Also, apply this command after creating the module: php bin/magento setup:upgrade Hope this help. – Gaurav Rajput May 21 '17 at 11:01
  • This doesnt answer the question asked. – John Mar 26 '19 at 12:47
2

You are using the wrong URL. Instead of

http://sca.followthetiger.com/api/rest/order

you should use

http://sca.followthetiger.com/api/rest/V1/orders/:order_id

| improve this answer | |
1

Using my localhost site url with https:// instead of http:// did the magic for me:

So: https://magento2.local/rest/V1/integration/customer/token/ Passing as body :

{"username":"user@email.com", "password":"customerpassword"}

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.