1

I have been trying to access a REST API end point that results in a 404 Not Found. I have come across documentation that explains the endpoints have to be configured in the webapi.xsd file. I have looked in all the directories under the ISS installation and can't find the file.

The documentation says "By default, this file is in app/code/<VENDOR>/Webapi/etc/webapi.xsd." but this directory doesn't exist.

Under app/code I only have "community" and "core"? Where is this file?

HELP!

  • I think you are reading M2 documentation and you are using M1 – Murtuza Zabuawala Aug 11 '17 at 13:24
  • It is available here route/vendor/magento/module-webapi/webapi.xsd you need to add it in your xml file as follows <routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"> – Abhishek Tripathi Aug 11 '17 at 13:30
  • I am discovered in the last hour I am on version 1.9.2.6 and the documentation I have been looking at is 2.1 I assume this is what you mean, which makes sense now. Do you know if its possible to add the "V1/integration/admin/token" REST call into the 1.9.2.6 setup. I want to use the REST API, so need to obtain an access token but wont be able to have the user entered their Magento admin username and password. – Wayne Aug 11 '17 at 14:40
0

I am discovered in the last hour I am on version 1.9.2.6 and the documentation I have been looking at is 2.1 I assume this is what you mean, which makes sense now. Do you know if its possible to add the "V1/integration/admin/token" REST call into the 1.9.2.6 setup. I want to use the REST API, so need to obtain an access token but wont be able to have the user entered their Magento admin username and password.

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.