Questions tagged [swagger]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
37 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":[{"...
0
votes
0answers
11 views

Magento 2: Swagger not showing Admin endpoints

I'm trying to view my local's API endpoints via swagger: http://magento2.docker/swagger However, even though i already pasted the API KEY into the box, it's still not showing the admin endpoints that ...
0
votes
0answers
25 views

how get magento 2 with swagger UI API

i was created a token and enable a web api too and then set a user roles. when open www.abc.com/swagger,i applied token API_key(on top), but it shown blank screen. kindly guide me step by step ...
1
vote
0answers
37 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
0answers
147 views

How to show Optional parameters in Swagger for Magento 2 custom REST API

I have created custom API with required parameters as: <route url="/V1/lorimcode/request/:reference/:amount" method="POST"> <service class="Vendor\Module\Api\...
0
votes
1answer
83 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-&...
0
votes
2answers
61 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
1answer
85 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": "...
0
votes
2answers
2k 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/
0
votes
1answer
485 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
2answers
98 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
2answers
871 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:...
6
votes
1answer
357 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
1answer
71 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
1answer
170 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
1answer
1k 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. ...