I am able to pass the JSON data as Query Parameters in which I am passing particular kit_config_id in the form of HasMap. Now I want the API to return the data related to only specified kit_config_id but its giving me all records.
What wrong I am doing here?
// Request object using RestAssured
RequestSpecification httpRequest = RestAssured.given();
HashMap<String, String> params = new HashMap<String, String>();
params.put("kit_config_id", "60db53ec7a334172b005b692");
Response response = httpRequest.given().baseUri("https://qa-api-test.com").param("query", params).when().get("/imageProps");
Complete Url of GET call is : https://qa-api-tests.com/imageProps?params={"query": {"kit_config_id": "60db53ec7a334172b005b692"}}
queryParammethod onRequestSpecification?