How to use "Magento2 REST API And Swagger UI With Examples"
We are using "postmen" Google Chrome extension.
Steps.
1. Setup Magento in your Localhost. I am using Magento 2.3 in my video.
2. Swagger is UI tools for API. we can see by adding "swagger" in our base_url of project. https://www.projectname.com/swagger and press enter.
3. Magento2 RESTAPI Example for "Product Listing" UsinG Swagger. In magento devdoc we can see "catalogProductRepositoryV1" which is for product listing.
We can use two methods.
Method 1 ----------- Access Token Generate From Admin Side.
Method 2 ----------- Login to Admin >> Stores >> Stores >> Settings >> Configuration >> SERVICES >> Magento Web API >> Web API Security >> Allow Anonymous Guest Access: Yes
Learn Magento2 REST API And Swagger UI With Examples
It's helpful for me. Thank you
ReplyDelete