• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rest-Assure - How to pass parameter

 
Ashish Sadhwani
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I ma new to Rest Assure, this is my Query:

http://000.000.xx/json/rest/root/query?query=account+id+balance

i want to invoke this via hash maps, something like this

{Map<String, String> params = new HashMap<String, String>();
params.put("account", " ");
params.put("id", " ");
params.put("balance", " ");

Response response = RestAssured.with().queryParameters(params).get("http://000.000.xx/json/rest/root/query?query=)

Response response = RestAssured.with().queryParameters(params).post("http://000.000.xx/json/rest/root/query?query=)

but this returning an error, please help

Thanks

 
Vijitha Kumara
Bartender
Posts: 3952
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What error you get? And did you look at the documentation here (assuming you are referring the same library)?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!