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

          Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

          Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form