Warm tip: This article is reproduced from stackoverflow.com, please click
arrays asp.net-web-api postman rest

Pass array as query parameter in Postman

发布于 2020-05-15 15:16:28

I am trying to pass an array as query parameter in Postman.

I am calling DELETE method to delete a user from list of databases. It is expecting list of database names as array in the query parameter. When I pass as given below, I am getting error.

{"code":2,"message":"data_services must be an array and not empty"}

Trying to Pass databasenames as array

Please let me know, how can I pass an array as query parameter in Postman.

Questioner
Venkataraman R
Viewed
263
Venkataraman R 2020-03-05 20:20

I mis-read the DELETE method. It was expecting array of databases in the body of the Http body section, instead of on query parameter section. I provided the array as given below and it got succeeded.

The below is the way, I passed array to Http request in the body section.

Passing Array in the Http request content body