Sharing some useful tips, solutions and notes for Geeks.

Monday, August 26, 2019

Magento 2 api with postman application - part 1

As we all know Magento 2 api can be used to get and set data to and fro. There are a variety of tasks we could achieve using this rest api we have in Magento 2.

Now before diving in, what we primarly needed is the postman application. Considering you are using a linux environment(you should i must say) please take ssh and paste below as listed to get latest one installed in your system.

Download postman application
$ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

Extract archive
$ sudo tar -xzf postman.tar.gz -C /opt

Make link to /usr/bin
$ sudo ln -s /opt/Postman/Postman /usr/bin/postman

Remove downloaded file from the server/system
$ rm postman.tar.gz


So now that the application is installed, you just need to paste below to open it.

$ postman &

Voila, the application is successfully installed. Next we need to go their online site, create an account and use that login details to open it in local.

In the next chapter, we can dive more into Postman and Magento 2.

No comments: