In the below reassured i am reusing the same query param and Baseuri multiple time is there any way to write it globally so that can be called
String BASEURI=EnvironmentSpecificConfiguration.from(environmentVariables).getProperty("base.url");
response = SerenityRest.given().contentType("application/json")
.header("Content-Type", "application/json")
.when().queryParam("ap_type", apptype)
.queryParam("date_req", today.toString())
.queryParam("days", days)
.get(BASEURI + basePath);
String BASEURI = EnvironmentSpecificConfiguration.from(environmentVariables).getProperty("base.url");
response = SerenityRest.given().contentType("application/json")
.header("Content-Type", "application/json")
.when().queryParam("ap_type", apptype)
.queryParam("date_req", Tomorrow.toString())
.queryParam("days", days)
.get(BASEURI + basePath);
String BASEURI = EnvironmentSpecificConfiguration.from(environmentVariables).getProperty("base.url");
response = SerenityRest.given().contentType("application/json")
.header("Content-Type", "application/json")
.when().queryParam("ap_type", apptype)
.queryParam("date_req", Nextday.toString())
.queryParam("days", days)
.get(BASEURI + basePath);