8

I use Magento 2.In Magento 2 Api are present.

How to use postman for a request like GET /V1/modules.

2 Answers 2

15

First you need to set up a user to get the authorization key. This tutorial walks you through that process. Once you have that, you can set up postman with these settings:

enter image description here

enter image description here

Where your GET request will have your URL (local or what not), and the Bearer will have your Access Token from the user you set up.

enter image description here

Also, you can test this out and get some information about the API from Swagger, the built in API UI. Every 2.2 install has access with this URL:

http://magento222.local/swagger

You can place the same Access Token in api_key box and get access to all the APIs in the system (without the key you will only see public API endpoints).

enter image description here

1
  • Please note that as of 2.4.5, the setting oauth/consumer/enable_integration_as_bearer needs to be enabled for this to work. Details Aug 23, 2022 at 16:59
1

You can also import all magento endpoints, just follow this article

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.