Questions tagged [swagger]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 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 ...
user avatar
0 votes
2 answers
135 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 ...
user avatar
  • 492
0 votes
1 answer
100 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
user avatar
1 vote
1 answer
106 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?
user avatar
1 vote
2 answers
428 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 ...
user avatar
  • 308
0 votes
0 answers
92 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&...
user avatar
1 vote
1 answer
186 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&...
user avatar
0 votes
0 answers
1k 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/...
user avatar
  • 11
0 votes
1 answer
158 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://...
user avatar
3 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.
user avatar
1 vote
3 answers
3k 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":[{"...
user avatar
  • 308
1 vote
0 answers
225 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 ...
user avatar
0 votes
1 answer
323 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-&...
user avatar
  • 1,551
1 vote
2 answers
487 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 ...
user avatar
3 votes
1 answer
133 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": "...
user avatar
1 vote
2 answers
5k 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/
user avatar
  • 696
1 vote
1 answer
1k 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"}]}
user avatar
0 votes
2 answers
362 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 ...
user avatar
  • 1,366
3 votes
2 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:...
user avatar
  • 828
6 votes
2 answers
1k 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 ...
user avatar
  • 2,084
0 votes
1 answer
239 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 */ ...
user avatar
  • 65
0 votes
1 answer
424 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 ?
user avatar
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. ...
user avatar
  • 448