Magento 2 : Not loading all the core Api's in swagger












1















I have started to work with the swagger tool but there is one problem while interacting with swagger using localhost/magento/2.1/swagger but all the Api's is not loading and at the bottom, the error has been showing



error img on the bottom



{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1/magento/2.1/rest/default/schema?services=all"}]}



I think I need to increase the memory limit to load all the api's. Tell me how can I load all the Api's.










share|improve this question





























    1















    I have started to work with the swagger tool but there is one problem while interacting with swagger using localhost/magento/2.1/swagger but all the Api's is not loading and at the bottom, the error has been showing



    error img on the bottom



    {"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1/magento/2.1/rest/default/schema?services=all"}]}



    I think I need to increase the memory limit to load all the api's. Tell me how can I load all the Api's.










    share|improve this question



























      1












      1








      1








      I have started to work with the swagger tool but there is one problem while interacting with swagger using localhost/magento/2.1/swagger but all the Api's is not loading and at the bottom, the error has been showing



      error img on the bottom



      {"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1/magento/2.1/rest/default/schema?services=all"}]}



      I think I need to increase the memory limit to load all the api's. Tell me how can I load all the Api's.










      share|improve this question
















      I have started to work with the swagger tool but there is one problem while interacting with swagger using localhost/magento/2.1/swagger but all the Api's is not loading and at the bottom, the error has been showing



      error img on the bottom



      {"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://127.0.0.1/magento/2.1/rest/default/schema?services=all"}]}



      I think I need to increase the memory limit to load all the api's. Tell me how can I load all the Api's.







      magento2 api






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 14 '18 at 5:07









      Teja Bhagavan Kollepara

      2,94841847




      2,94841847










      asked Sep 29 '16 at 3:44









      Ramkishan SutharRamkishan Suthar

      2,11921032




      2,11921032






















          4 Answers
          4






          active

          oldest

          votes


















          0














          I'm stuck here too



          I also tried with an api_key in the form field on top, generated as described in this document:



          http://devdocs.magento.com/guides/v2.1/rest/generate-local.html



          using



          curl -X POST "https://magento.host/index.php/rest/V1/integration/admin/token" -H "Content-Type:application/json" -d '{"username":"username", "password":"password"}'



          but got the same message as @ramkishan






          share|improve this answer

































            0














            To get all admin api's just send a post request using
            integrationAdminTokenServiceV1 after hitting domain-name/swagger in browser.



            This post request contains username and password of admin after hitting this request you will get a token just copy this token and paste it at api_key input at top-right of this page and click on apply button.



            You will get all api's related to magento admin.






            share|improve this answer
























            • The error icon is still displayed in the bottom of the methods.

              – Ricardo Martins
              May 14 '18 at 3:32



















            0














            It seems that after authenticating and adding the API key on the top we can get all methods.



            However, the error displayed on the botton is because the ajax request to online.swagger.io returns the error. It's because, the service can't reach your local environment. So, it's not a real error.



            ajax request to online.swagger.ioimage response from online.swagger.io



            As previously mentioned here, to authenticate and get the api key, that will allow you to see all the available methods, just make a POST to /rest/V1/integration/admin/token with your credentials (as described here).



            I.e.:



            curl -X POST 
            https://magento222.local.com.br/rest/V1/integration/admin/token
            -H 'Content-Type: application/json'
            -d '{"username": "myAdminLogin","password":"myAdminPass"}'





            share|improve this answer































              -1














              Magento core developers like to hard-code everything into there code.



              The storeview "default" is ofcourse hard-coded Magento style.



              Magento only works a little bit when you install it, like they did. At that is with everything called default and as simple as possible. But don't worry you can debug Magento for them in your own free time and submit a bug on github ! (2000+ and counting)






              share|improve this answer
























              • I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                – Ricardo Martins
                May 14 '18 at 3:11











              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%2f138591%2fmagento-2-not-loading-all-the-core-apis-in-swagger%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              I'm stuck here too



              I also tried with an api_key in the form field on top, generated as described in this document:



              http://devdocs.magento.com/guides/v2.1/rest/generate-local.html



              using



              curl -X POST "https://magento.host/index.php/rest/V1/integration/admin/token" -H "Content-Type:application/json" -d '{"username":"username", "password":"password"}'



              but got the same message as @ramkishan






              share|improve this answer






























                0














                I'm stuck here too



                I also tried with an api_key in the form field on top, generated as described in this document:



                http://devdocs.magento.com/guides/v2.1/rest/generate-local.html



                using



                curl -X POST "https://magento.host/index.php/rest/V1/integration/admin/token" -H "Content-Type:application/json" -d '{"username":"username", "password":"password"}'



                but got the same message as @ramkishan






                share|improve this answer




























                  0












                  0








                  0







                  I'm stuck here too



                  I also tried with an api_key in the form field on top, generated as described in this document:



                  http://devdocs.magento.com/guides/v2.1/rest/generate-local.html



                  using



                  curl -X POST "https://magento.host/index.php/rest/V1/integration/admin/token" -H "Content-Type:application/json" -d '{"username":"username", "password":"password"}'



                  but got the same message as @ramkishan






                  share|improve this answer















                  I'm stuck here too



                  I also tried with an api_key in the form field on top, generated as described in this document:



                  http://devdocs.magento.com/guides/v2.1/rest/generate-local.html



                  using



                  curl -X POST "https://magento.host/index.php/rest/V1/integration/admin/token" -H "Content-Type:application/json" -d '{"username":"username", "password":"password"}'



                  but got the same message as @ramkishan







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Oct 25 '16 at 12:43

























                  answered Oct 25 '16 at 12:13









                  jbokajboka

                  213




                  213

























                      0














                      To get all admin api's just send a post request using
                      integrationAdminTokenServiceV1 after hitting domain-name/swagger in browser.



                      This post request contains username and password of admin after hitting this request you will get a token just copy this token and paste it at api_key input at top-right of this page and click on apply button.



                      You will get all api's related to magento admin.






                      share|improve this answer
























                      • The error icon is still displayed in the bottom of the methods.

                        – Ricardo Martins
                        May 14 '18 at 3:32
















                      0














                      To get all admin api's just send a post request using
                      integrationAdminTokenServiceV1 after hitting domain-name/swagger in browser.



                      This post request contains username and password of admin after hitting this request you will get a token just copy this token and paste it at api_key input at top-right of this page and click on apply button.



                      You will get all api's related to magento admin.






                      share|improve this answer
























                      • The error icon is still displayed in the bottom of the methods.

                        – Ricardo Martins
                        May 14 '18 at 3:32














                      0












                      0








                      0







                      To get all admin api's just send a post request using
                      integrationAdminTokenServiceV1 after hitting domain-name/swagger in browser.



                      This post request contains username and password of admin after hitting this request you will get a token just copy this token and paste it at api_key input at top-right of this page and click on apply button.



                      You will get all api's related to magento admin.






                      share|improve this answer













                      To get all admin api's just send a post request using
                      integrationAdminTokenServiceV1 after hitting domain-name/swagger in browser.



                      This post request contains username and password of admin after hitting this request you will get a token just copy this token and paste it at api_key input at top-right of this page and click on apply button.



                      You will get all api's related to magento admin.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Sep 15 '17 at 3:58









                      Ramkishan SutharRamkishan Suthar

                      2,11921032




                      2,11921032













                      • The error icon is still displayed in the bottom of the methods.

                        – Ricardo Martins
                        May 14 '18 at 3:32



















                      • The error icon is still displayed in the bottom of the methods.

                        – Ricardo Martins
                        May 14 '18 at 3:32

















                      The error icon is still displayed in the bottom of the methods.

                      – Ricardo Martins
                      May 14 '18 at 3:32





                      The error icon is still displayed in the bottom of the methods.

                      – Ricardo Martins
                      May 14 '18 at 3:32











                      0














                      It seems that after authenticating and adding the API key on the top we can get all methods.



                      However, the error displayed on the botton is because the ajax request to online.swagger.io returns the error. It's because, the service can't reach your local environment. So, it's not a real error.



                      ajax request to online.swagger.ioimage response from online.swagger.io



                      As previously mentioned here, to authenticate and get the api key, that will allow you to see all the available methods, just make a POST to /rest/V1/integration/admin/token with your credentials (as described here).



                      I.e.:



                      curl -X POST 
                      https://magento222.local.com.br/rest/V1/integration/admin/token
                      -H 'Content-Type: application/json'
                      -d '{"username": "myAdminLogin","password":"myAdminPass"}'





                      share|improve this answer




























                        0














                        It seems that after authenticating and adding the API key on the top we can get all methods.



                        However, the error displayed on the botton is because the ajax request to online.swagger.io returns the error. It's because, the service can't reach your local environment. So, it's not a real error.



                        ajax request to online.swagger.ioimage response from online.swagger.io



                        As previously mentioned here, to authenticate and get the api key, that will allow you to see all the available methods, just make a POST to /rest/V1/integration/admin/token with your credentials (as described here).



                        I.e.:



                        curl -X POST 
                        https://magento222.local.com.br/rest/V1/integration/admin/token
                        -H 'Content-Type: application/json'
                        -d '{"username": "myAdminLogin","password":"myAdminPass"}'





                        share|improve this answer


























                          0












                          0








                          0







                          It seems that after authenticating and adding the API key on the top we can get all methods.



                          However, the error displayed on the botton is because the ajax request to online.swagger.io returns the error. It's because, the service can't reach your local environment. So, it's not a real error.



                          ajax request to online.swagger.ioimage response from online.swagger.io



                          As previously mentioned here, to authenticate and get the api key, that will allow you to see all the available methods, just make a POST to /rest/V1/integration/admin/token with your credentials (as described here).



                          I.e.:



                          curl -X POST 
                          https://magento222.local.com.br/rest/V1/integration/admin/token
                          -H 'Content-Type: application/json'
                          -d '{"username": "myAdminLogin","password":"myAdminPass"}'





                          share|improve this answer













                          It seems that after authenticating and adding the API key on the top we can get all methods.



                          However, the error displayed on the botton is because the ajax request to online.swagger.io returns the error. It's because, the service can't reach your local environment. So, it's not a real error.



                          ajax request to online.swagger.ioimage response from online.swagger.io



                          As previously mentioned here, to authenticate and get the api key, that will allow you to see all the available methods, just make a POST to /rest/V1/integration/admin/token with your credentials (as described here).



                          I.e.:



                          curl -X POST 
                          https://magento222.local.com.br/rest/V1/integration/admin/token
                          -H 'Content-Type: application/json'
                          -d '{"username": "myAdminLogin","password":"myAdminPass"}'






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 14 '18 at 3:40









                          Ricardo MartinsRicardo Martins

                          580420




                          580420























                              -1














                              Magento core developers like to hard-code everything into there code.



                              The storeview "default" is ofcourse hard-coded Magento style.



                              Magento only works a little bit when you install it, like they did. At that is with everything called default and as simple as possible. But don't worry you can debug Magento for them in your own free time and submit a bug on github ! (2000+ and counting)






                              share|improve this answer
























                              • I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                                – Ricardo Martins
                                May 14 '18 at 3:11
















                              -1














                              Magento core developers like to hard-code everything into there code.



                              The storeview "default" is ofcourse hard-coded Magento style.



                              Magento only works a little bit when you install it, like they did. At that is with everything called default and as simple as possible. But don't worry you can debug Magento for them in your own free time and submit a bug on github ! (2000+ and counting)






                              share|improve this answer
























                              • I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                                – Ricardo Martins
                                May 14 '18 at 3:11














                              -1












                              -1








                              -1







                              Magento core developers like to hard-code everything into there code.



                              The storeview "default" is ofcourse hard-coded Magento style.



                              Magento only works a little bit when you install it, like they did. At that is with everything called default and as simple as possible. But don't worry you can debug Magento for them in your own free time and submit a bug on github ! (2000+ and counting)






                              share|improve this answer













                              Magento core developers like to hard-code everything into there code.



                              The storeview "default" is ofcourse hard-coded Magento style.



                              Magento only works a little bit when you install it, like they did. At that is with everything called default and as simple as possible. But don't worry you can debug Magento for them in your own free time and submit a bug on github ! (2000+ and counting)







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Sep 14 '17 at 15:08









                              Roger GetnoticedRoger Getnoticed

                              367




                              367













                              • I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                                – Ricardo Martins
                                May 14 '18 at 3:11



















                              • I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                                – Ricardo Martins
                                May 14 '18 at 3:11

















                              I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                              – Ricardo Martins
                              May 14 '18 at 3:11





                              I also hate the bugs in M2 present in essential things. However, it doesn't help much complaining about them here.

                              – Ricardo Martins
                              May 14 '18 at 3:11


















                              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%2f138591%2fmagento-2-not-loading-all-the-core-apis-in-swagger%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