title: Restassured how to write common query param instead of repeating the same
body: <p>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</p>
  <p>String BASEURI=EnvironmentSpecificConfiguration.from(environmentVariables).getProperty(&quot;base.url&quot;);</p>
  <pre><code>    response = SerenityRest.given().contentType(&quot;application/json&quot;)
              .header(&quot;Content-Type&quot;, &quot;application/json&quot;)
              .when().queryParam(&quot;ap_type&quot;, apptype)
              .queryParam(&quot;date_req&quot;, today.toString())
              .queryParam(&quot;days&quot;, days)
              .get(BASEURI + basePath);
              
              
              String BASEURI = EnvironmentSpecificConfiguration.from(environmentVariables).getProperty(&quot;base.url&quot;);
  
      response = SerenityRest.given().contentType(&quot;application/json&quot;)
              .header(&quot;Content-Type&quot;, &quot;application/json&quot;)
              .when().queryParam(&quot;ap_type&quot;, apptype)
              .queryParam(&quot;date_req&quot;, Tomorrow.toString())
              .queryParam(&quot;days&quot;, days)
              .get(BASEURI + basePath);
              
              
              String BASEURI = EnvironmentSpecificConfiguration.from(environmentVariables).getProperty(&quot;base.url&quot;);
  
      response = SerenityRest.given().contentType(&quot;application/json&quot;)
              .header(&quot;Content-Type&quot;, &quot;application/json&quot;)
              .when().queryParam(&quot;ap_type&quot;, apptype)
              .queryParam(&quot;date_req&quot;, Nextday.toString())
              .queryParam(&quot;days&quot;, days)
              .get(BASEURI + basePath);
  </code></pre>