Magento REST API | Request does not match any routeExtending Magento REST Api with a custom module fails on routeUnable to extend Orders Rest Api of Magentohow to override a Core Customer Model in a local module in magento 1.9.2Magento rest api getting error Request does not match any routeCustom rest API not working in magento 1.9.2.4Orders Api Error : “Request does not match any route”Magento 1.9 Override Model ProblemRequest doesn't match any routeREST API 404 error: “Request does not match any route error” at Shipping method selection Magento 2Request does not match any route issue in magento 2
How do I iterate equal values with the standard library?
Should I increase my 401(k) contributions, or increase my mortgage payments
What's the difference between a type and a kind?
/api/sitecore is not working in CD server
What instances can be solved today by modern solvers (pure LP)?
How did שְׁלֹמֹה (shlomo) become Solomon?
Machine Learning Golf: Multiplication
Can you take the Dodge action while prone?
Did William Shakespeare hide things in his writings?
Is conquering your neighbors to fight a greater enemy a valid strategy?
In the Seventh Seal why does Death let the chess game happen?
Why do we need a bootloader separate from our application program in microcontrollers?
Can a USB hub be used to access a drive from 2 devices?
n-level Ouroboros Quine
What happens if the limit of 4 billion files was exceeded in an ext4 partition?
Does the Milky Way orbit around anything?
Is kapton suitable for use as high voltage insulation?
What are some bad ways to subvert tropes?
What do you call the angle of the direction of an airplane?
Convert integer to full text string duration
How serious is plagiarism in a master’s thesis?
soda water first stored in refrigerator and then outside
What do I need to see before Spider-Man: Far From Home?
Boss furious on bad appraisal
Magento REST API | Request does not match any route
Extending Magento REST Api with a custom module fails on routeUnable to extend Orders Rest Api of Magentohow to override a Core Customer Model in a local module in magento 1.9.2Magento rest api getting error Request does not match any routeCustom rest API not working in magento 1.9.2.4Orders Api Error : “Request does not match any route”Magento 1.9 Override Model ProblemRequest doesn't match any routeREST API 404 error: “Request does not match any route error” at Shipping method selection Magento 2Request does not match any route issue in magento 2
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have this code
code on /app/etc/modules/Custom_Restapi.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Restapi>
<active>true</active>
<codePool>local</codePool>
<depends>
Mage_Api2
</depends>
</Custom_Restapi>
</modules>
code on app/code/local/Custom/Restapi/etc/api2.xml
<?xml version="1.0"?>
<config>
<api2>
<resource_groups>
<custom_restapi translate="title" module="Custom_Restapi">
<title>Custom Rest API</title>
<sort_order>10</sort_order>
</custom_restapi>
</resource_groups>
<resources>
<custom_restapi translate="title" module="Custom_Restapi">
<group>custom_restapi</group>
<model>custom_restapi/api2_restapi</model>
<title>Testing My Rest API</title>
<sort_order>10</sort_order>
<privileges>
<guest>
<create>1</create>
</guest>
</privileges>
<attributes translate="firstname lastname email password" module="Custom_Restapi">
<firstname>First Name</firstname>
<lastname>Last Name</lastname>
<email>Email</email>
<password>Password</password>
</attributes>
<routes>
<route_entity>
<route>/customer/:id</route>
<action_type>entity</action_type>
</route_entity>
<route_collection>
<route>/customer</route>
<action_type>collection</action_type>
</route_collection>
</routes>
<versions>1</versions>
</custom_restapi>
</resources>
</api2>
code on code on app/code/local/Custom/Restapi/etc/api2.xml
<config>
<modules>
<Custom_Restapi>
<version>0.1.0</version>
</Custom_Restapi>
</modules>
<global>
<models>
<custom_restapi>
<class>Custom_Restapi_Model</class>
</custom_restapi>
</models>
</global>
code on app/code/local/Custom/Restapi/Model/Api2/Restapi/Rest/Guest/V1.php
class Custom_Restapi_Model_Api2_Restapi_Rest_Guest_V1 extends
Custom_Restapi_Model_Api2_Restapi
/**
* Create a customer
* @return array
*/
public function _create(array $data)
var_dump('tested');
exit;
code on app/code/local/Custom/Restapi/Model/Api2/Restapi.php
class Custom_Restapi_Model_Api2_Restapi extends Mage_Api2_Model_Resource
but i have this error all time
My structure
please tell me how to display my var_dump, why all time 404?
And if I want to add another controller, what do I need to do for this?
and how give permission on this resource in the admin area ?
magento-1.9 rest-api
add a comment |
I have this code
code on /app/etc/modules/Custom_Restapi.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Restapi>
<active>true</active>
<codePool>local</codePool>
<depends>
Mage_Api2
</depends>
</Custom_Restapi>
</modules>
code on app/code/local/Custom/Restapi/etc/api2.xml
<?xml version="1.0"?>
<config>
<api2>
<resource_groups>
<custom_restapi translate="title" module="Custom_Restapi">
<title>Custom Rest API</title>
<sort_order>10</sort_order>
</custom_restapi>
</resource_groups>
<resources>
<custom_restapi translate="title" module="Custom_Restapi">
<group>custom_restapi</group>
<model>custom_restapi/api2_restapi</model>
<title>Testing My Rest API</title>
<sort_order>10</sort_order>
<privileges>
<guest>
<create>1</create>
</guest>
</privileges>
<attributes translate="firstname lastname email password" module="Custom_Restapi">
<firstname>First Name</firstname>
<lastname>Last Name</lastname>
<email>Email</email>
<password>Password</password>
</attributes>
<routes>
<route_entity>
<route>/customer/:id</route>
<action_type>entity</action_type>
</route_entity>
<route_collection>
<route>/customer</route>
<action_type>collection</action_type>
</route_collection>
</routes>
<versions>1</versions>
</custom_restapi>
</resources>
</api2>
code on code on app/code/local/Custom/Restapi/etc/api2.xml
<config>
<modules>
<Custom_Restapi>
<version>0.1.0</version>
</Custom_Restapi>
</modules>
<global>
<models>
<custom_restapi>
<class>Custom_Restapi_Model</class>
</custom_restapi>
</models>
</global>
code on app/code/local/Custom/Restapi/Model/Api2/Restapi/Rest/Guest/V1.php
class Custom_Restapi_Model_Api2_Restapi_Rest_Guest_V1 extends
Custom_Restapi_Model_Api2_Restapi
/**
* Create a customer
* @return array
*/
public function _create(array $data)
var_dump('tested');
exit;
code on app/code/local/Custom/Restapi/Model/Api2/Restapi.php
class Custom_Restapi_Model_Api2_Restapi extends Mage_Api2_Model_Resource
but i have this error all time
My structure
please tell me how to display my var_dump, why all time 404?
And if I want to add another controller, what do I need to do for this?
and how give permission on this resource in the admin area ?
magento-1.9 rest-api
add a comment |
I have this code
code on /app/etc/modules/Custom_Restapi.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Restapi>
<active>true</active>
<codePool>local</codePool>
<depends>
Mage_Api2
</depends>
</Custom_Restapi>
</modules>
code on app/code/local/Custom/Restapi/etc/api2.xml
<?xml version="1.0"?>
<config>
<api2>
<resource_groups>
<custom_restapi translate="title" module="Custom_Restapi">
<title>Custom Rest API</title>
<sort_order>10</sort_order>
</custom_restapi>
</resource_groups>
<resources>
<custom_restapi translate="title" module="Custom_Restapi">
<group>custom_restapi</group>
<model>custom_restapi/api2_restapi</model>
<title>Testing My Rest API</title>
<sort_order>10</sort_order>
<privileges>
<guest>
<create>1</create>
</guest>
</privileges>
<attributes translate="firstname lastname email password" module="Custom_Restapi">
<firstname>First Name</firstname>
<lastname>Last Name</lastname>
<email>Email</email>
<password>Password</password>
</attributes>
<routes>
<route_entity>
<route>/customer/:id</route>
<action_type>entity</action_type>
</route_entity>
<route_collection>
<route>/customer</route>
<action_type>collection</action_type>
</route_collection>
</routes>
<versions>1</versions>
</custom_restapi>
</resources>
</api2>
code on code on app/code/local/Custom/Restapi/etc/api2.xml
<config>
<modules>
<Custom_Restapi>
<version>0.1.0</version>
</Custom_Restapi>
</modules>
<global>
<models>
<custom_restapi>
<class>Custom_Restapi_Model</class>
</custom_restapi>
</models>
</global>
code on app/code/local/Custom/Restapi/Model/Api2/Restapi/Rest/Guest/V1.php
class Custom_Restapi_Model_Api2_Restapi_Rest_Guest_V1 extends
Custom_Restapi_Model_Api2_Restapi
/**
* Create a customer
* @return array
*/
public function _create(array $data)
var_dump('tested');
exit;
code on app/code/local/Custom/Restapi/Model/Api2/Restapi.php
class Custom_Restapi_Model_Api2_Restapi extends Mage_Api2_Model_Resource
but i have this error all time
My structure
please tell me how to display my var_dump, why all time 404?
And if I want to add another controller, what do I need to do for this?
and how give permission on this resource in the admin area ?
magento-1.9 rest-api
I have this code
code on /app/etc/modules/Custom_Restapi.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Restapi>
<active>true</active>
<codePool>local</codePool>
<depends>
Mage_Api2
</depends>
</Custom_Restapi>
</modules>
code on app/code/local/Custom/Restapi/etc/api2.xml
<?xml version="1.0"?>
<config>
<api2>
<resource_groups>
<custom_restapi translate="title" module="Custom_Restapi">
<title>Custom Rest API</title>
<sort_order>10</sort_order>
</custom_restapi>
</resource_groups>
<resources>
<custom_restapi translate="title" module="Custom_Restapi">
<group>custom_restapi</group>
<model>custom_restapi/api2_restapi</model>
<title>Testing My Rest API</title>
<sort_order>10</sort_order>
<privileges>
<guest>
<create>1</create>
</guest>
</privileges>
<attributes translate="firstname lastname email password" module="Custom_Restapi">
<firstname>First Name</firstname>
<lastname>Last Name</lastname>
<email>Email</email>
<password>Password</password>
</attributes>
<routes>
<route_entity>
<route>/customer/:id</route>
<action_type>entity</action_type>
</route_entity>
<route_collection>
<route>/customer</route>
<action_type>collection</action_type>
</route_collection>
</routes>
<versions>1</versions>
</custom_restapi>
</resources>
</api2>
code on code on app/code/local/Custom/Restapi/etc/api2.xml
<config>
<modules>
<Custom_Restapi>
<version>0.1.0</version>
</Custom_Restapi>
</modules>
<global>
<models>
<custom_restapi>
<class>Custom_Restapi_Model</class>
</custom_restapi>
</models>
</global>
code on app/code/local/Custom/Restapi/Model/Api2/Restapi/Rest/Guest/V1.php
class Custom_Restapi_Model_Api2_Restapi_Rest_Guest_V1 extends
Custom_Restapi_Model_Api2_Restapi
/**
* Create a customer
* @return array
*/
public function _create(array $data)
var_dump('tested');
exit;
code on app/code/local/Custom/Restapi/Model/Api2/Restapi.php
class Custom_Restapi_Model_Api2_Restapi extends Mage_Api2_Model_Resource
but i have this error all time
My structure
please tell me how to display my var_dump, why all time 404?
And if I want to add another controller, what do I need to do for this?
and how give permission on this resource in the admin area ?
magento-1.9 rest-api
magento-1.9 rest-api
asked Jun 26 at 16:00
Denis MaksiuraDenis Maksiura
608 bronze badges
608 bronze badges
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279758%2fmagento-rest-api-request-does-not-match-any-route%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f279758%2fmagento-rest-api-request-does-not-match-any-route%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown