Questions tagged [swagger]
The swagger tag has no usage guidance.
23
questions
0
votes
0
answers
165
views
OpenAPI (Swagger) specification for bulk endpoints
We are integrating with a Magento webshop via its REST API. We are generating a client based on the OpenAPI (Swagger) specification (via /rest/schema).
Now, we want to use the bulk api. However, these ...
2
votes
2
answers
2k
views
Magento2.4.4 swagger
Installed fresh magento 2.4.4 version on server . When i added some categories and products unable to check the swagger URL for API's
I navigated to https://myip/swagger. It is giving 404 page not ...
0
votes
1
answer
187
views
Failed to load API definition
Anyone can help me i am getting error in my magento 2 swagger.
https://api.backoffice-staging.kamioun.com/
Please let me know if anybody have solution for it.
Thanks
1
vote
1
answer
333
views
How do I add Custom Rest API Swagger as per Magento documentation? in Magento 2.3.4
Can anyone please suggest how to add custom Rest API to Swagger documentation in Magento 2.3.4?
1
vote
2
answers
821
views
Swagger Looks Empty Magento 2.4.2
I had updated the Magento 2.3.5 to Magento 2.4.2 the my Swagger is not working i shows the Empty page. The console shows some error and there is a syntax error in swagger like it is showing but i had ...
0
votes
0
answers
135
views
Swagger not loading - 500 error: "message":"Internal Error. URL.com/rest/all/schema
Found a couple error log entries that may be causing it. But I don't read log files very well. I can't find much on Swagger issues. Could it be the setup of Magento on my host?
500 : {"message&...
1
vote
1
answer
341
views
Magento 2 Stock update API Postman error (Consumer is not authorized to access %resources)
I am trying to update the product quantity using postman. But i am getting the following errors
{
"message": "Consumer is not authorized to access %resources",
"parameters&...
0
votes
0
answers
3k
views
SWAGGER: Parser error on line 27 end of the stream or a document separator is expected
When i try to get the API schema from swagger for an actuve customer y get this error
Parser error on line 27 end of the stream or a document separator is expected
https://magento.farmagsa.com.ar/...
0
votes
1
answer
266
views
Magento 2 swagger error
while accessing https://website-url/swagger got error as
500 : {"message":"Internal Error. Details are available in Magento log file. Report ID: webapi-5f33c4d0d4891"} https://...
4
votes
2
answers
1k
views
Swagger not opening in 2.3.5-p1 magento - "\DateTime" parameter type is invalid
I had a fresh installation of magento 2.3.5-p1.
But the swagger is giving error.
I checked git issues where someone has suggested to disable dotmailer modules.
I did, but still the error remains.
1
vote
3
answers
4k
views
In magento 2.3.5 Swagger is not working (Failed to load API definition.)
I had upgraded the magento version to 2.3.5 after that swagger is not working in my setup
Image Reference :
To debug the i click invalid button it shows
{"schemaValidationMessages":[{"...
1
vote
0
answers
364
views
Swagger redirecting to login when going from Production mode to Developer
When I tried to set my production mode instance to developer mode I can not get swagger to load.
If I go to mystore.com/swagger it will redirect to the login page.
Deploy mode is set to developer. I ...
0
votes
1
answer
497
views
Difference in response from magento swagger and postman Magento 2
I have custom API in which I am retrieving customer balance as:
use Magento\CustomerBalance\Model\BalanceFactory;
........................
........................
$model = $this->balanceFactory-&...
1
vote
2
answers
868
views
How to programmatically reindex product after update ex. price/stock quantity
how to programmatically reindex product after update ex. price/stock quantity using Magento ver. 2.3.2 API via Swagger? I do application in C# which sync my system with Magento. I have a lot of ...
3
votes
1
answer
177
views
install Magento 2 API Client
I want to install this dial but I do not understand or obtain GIT_USER_ID and GIT_REPO_ID.git
https://github.com/netz98/magento2-swagger-api-client-demo
{
"repositories": [
{
"type": "...
1
vote
2
answers
6k
views
Failed to load API definition error in magento 2 swagger
I am hitting magento 2 swagger UI but getting 500 error
Failed to load API definition
http://'website_name'.com/swagger/
1
vote
1
answer
2k
views
Can't read from file "http://<SITE_URL>/rest/default/schema?services=all" in Magento 2.2.6
And Error response is
{"schemaValidationMessages":[{"level":"error","message":"Can't read from file http://<SITE_URL>/rest/default/schema?services=all"}]}
0
votes
2
answers
929
views
Calling M2 REST API from browser for anonymous users
I'm trying to call REST endpoints from the browser. Initially, I'd like to be able to fetch product information.
It looks like session-based authorization is what I'm after.
I started by grabbing a ...
3
votes
3
answers
2k
views
Magento 2 swagger-ui error
I trying this url http://192.168.1.67/isac/swagger but I got this error below
500 : {"message":"Internal Error. Details are available in Magento log file.
Report ID: webapi-5bfe5e3ac4100"} http:...
7
votes
2
answers
2k
views
Swagger available to the world wide web
On any given Magento2 website, you can navigate to https://yourmagentostore.com/swagger and access the swagger UI for API methods.
One of the methods that you can test before being authenticated is ...
0
votes
1
answer
465
views
How to check is valid token or not. Magento 2 API
I need to do API method, which return data from db table just for admin.
There is my method:
/**
* @return array
* @throws \Magento\Framework\Exception\LocalizedException
*/
...
0
votes
1
answer
490
views
API with swagger in magento 1 or other tool
I am trying to find out way to create api for magento 1.
can we use swagger for magento 1 or any other tools available for magento 1.9.
Please give suggestion or need to create from scratch ?
2
votes
1
answer
2k
views
How to upload category image via REST API
Using swagger I am not seeing any interface out of the box that would allow me to upload category images via API calls, in the same fashion as I can do with product images by base_64 encoding them.
...