3

Can my store resolves API request using custom admin url? Eg: https://admin.magento.lc/api/v2_soap?wsdl=1? Here problem is if I use api url via custom admin url it redirects to frontend.

  • Interesting, never tried it with a custom admin subdomain. Did you already solve it? – Anna Völkl Jan 4 '15 at 14:05
  • not, @AnnaVölkl, it is pending – mageUz Jan 5 '15 at 7:20
  • @mageUz Did you manage to solve this issue? – Rinto George Oct 28 '15 at 6:47
  • @duke not solved, see answer given below. api is frontend route, so it is not possible working with api via admin url – mageUz Oct 28 '15 at 8:34
5

After having a look into /app/code/core/Mage/Api/etc/config.xml i saw, that the route is only configured for the frontend, not for admin:

<config>
<modules ...>
<global ...>
<frontend>
        <routers>
            <api>
                <use>standard</use>
                <args>
                    <module>Mage_Api</module>
                    <frontName>api</frontName>
                </args>
            </api>
        </routers>
...
</frontend>

So there is no admin-route for /api which might be the cause why you get redirected. I did not test it though.

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.