Magento 2 : Not loading all the core Api's in swagger
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

{"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
add a comment |
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

{"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
add a comment |
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

{"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
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

{"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
magento2 api
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
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
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
add a comment |
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.
The error icon is still displayed in the bottom of the methods.
– Ricardo Martins
May 14 '18 at 3:32
add a comment |
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.


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"}'
add a comment |
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)
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
add a comment |
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%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
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
add a comment |
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
add a comment |
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
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
edited Oct 25 '16 at 12:43
answered Oct 25 '16 at 12:13
jbokajboka
213
213
add a comment |
add a comment |
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.
The error icon is still displayed in the bottom of the methods.
– Ricardo Martins
May 14 '18 at 3:32
add a comment |
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.
The error icon is still displayed in the bottom of the methods.
– Ricardo Martins
May 14 '18 at 3:32
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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.


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"}'
add a comment |
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.


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"}'
add a comment |
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.


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"}'
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.


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"}'
answered May 14 '18 at 3:40
Ricardo MartinsRicardo Martins
580420
580420
add a comment |
add a comment |
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)
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
add a comment |
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)
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
add a comment |
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)
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)
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
add a comment |
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
add a comment |
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%2f138591%2fmagento-2-not-loading-all-the-core-apis-in-swagger%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