Send the API Headers in Rest Assured using java

API Headers have two parameter Content-Type=application/json and also accesstoken =”kggkgkgkgketdfgxgcccvcdftfty” I trying to automate the API using Rest assured but not successful. Below is the code enter code here RestAssured.baseURI = prop.getProperty(“serviceurl1”); //2. define the http request: RequestSpecification httpRequest = RestAssured.given() .filter(new ResponseLoggingFilter()) .filter(new RequestLoggingFilter()); JSONObject requestParams = new JSONObject(); requestParams.put(“longitude”, eLongitude); requestParams.put(“latitude”, eLaititude); requestParams.put(“country”,…

Details