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;








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



enter image description here



My structure



enter image description here



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 ?










share|improve this question




























    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



    enter image description here



    My structure



    enter image description here



    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 ?










    share|improve this question
























      0












      0








      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



      enter image description here



      My structure



      enter image description here



      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 ?










      share|improve this question














      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



      enter image description here



      My structure



      enter image description here



      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jun 26 at 16:00









      Denis MaksiuraDenis Maksiura

      608 bronze badges




      608 bronze badges




















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

          Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

          Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?