Showing posts with label POSTMAN. Show all posts
Showing posts with label POSTMAN. Show all posts

Wednesday, February 19, 2020

Add postman plugin in chrome browser

How you add postman plugin in chrome browser.

Postman manly Use for POST and GET method. Postman use for API development purpose. There is also discuss how to open postman in chrome and Postman inspector for chrome.



This screen showing Lunch app but if you adding first time its showing add plugin ones you add plugin .

Check Browser    you find app click on this icon and you can find postman icon.




Click on postman icon you get this windows.




In this windows you can check in post method and give yours URL.

http://192.168.129.206:8000/sap/opu/odata/sap/ZREMPLOYEE_SRV/ZEmployeeSet.




Here you find authorization you select authorization type Basic authorization.
Here you give Username and password your sap login windows.
Click on Headers Enter X-CSRF-Token:Fetch here you Genrate new Tocken
Authorization:Basic cm9oaW5pazpkb2Npbmlob3Ix
Content-Type:application/x-www-form-urlencoded
X-CSRF-Token:Fetch.


In above windows After Enter URL and get methods and all authorization click send buttons ones you click send button you get status ok 200 now you services getting response successfully.

Now click on Header and copy Generated Token code.


x-csrf-token →vux6WrcunGe--EpUaMcmGw==
Now you done get method in postman next step i going to explain how to enter records for post lest carefully read and do
Select post methods and select body Enter this code
{
  "d" : {
    "__metadata" : {
      "id" : "http://hpsap.sqrlsep.com:8000/sap/opu/odata/sap/ZREMPLOYEE_SRV/ZEmployeeSet('1')",
      "uri" : "http://hpsap.sqrlsep.com:8000/sap/opu/odata/sap/ZREMPLOYEE_SRV/ZEmployeeSet('1')",
      "type" : "ZEMPLOYEE_SRV.ZEmployee"
    },
    "EmpId" : "157",
    "EmpName" : "rakesh",
    "EmpAddress" : "lucknow",
    "EmpDesignation" : "sap scrm",
    "EmpType" : "sap abap"
  }
}


Click on Header and paste Token key
X-CSRF-Token:vux6WrcunGe--EpUaMcmGw==
Content-Type:application/json

After updating all records click on the send buttons.

Now you can get response like create.


 So here you done get and post methods in in postman. So hope you enjoy this tutorial.