How to send Arrays with GET or POST request in POSTMAN

 https://medium.com/@darilldrems/how-to-send-arrays-with-get-or-post-request-in-postman-f87ca70b154e



Postman is a chrome extension that allows anyone build, test and document API endpoints. I have been using it for some time now and it really allows me to be productive with API endpoints that I am not sure the structure of responses or even the fields returned.

Once you get started with it and you love it then you will face the problem of sending Array parameters with your GET or POST request. Postman allows anyone to send any kind of array with their request, you just need to know how.

Associative Arrays or Dictionaries

An associative array for PHP developers looks like this:

$ass_array = array(
“name” => “Ridwan Olalere”,
“twitter” => “@ridwan_olalere”
);

An associative array/dictionary for Python developers looks like this:

ass_array = {
“name”: “Ridwan Olalere”,
“twitter”: “@ridwan_olalere”
}

How to pass associative array/dictionary in Postman:

No comments:

Post a Comment

Pages