title: How do we pass multiple headers in rest assured?
body: <p>I am new to rest-assured and Java, I am trying to do a very basic test of checking the response is 200 ok for API.
  can you any one please tell me what do I need to change in the below script in order to pass multiple headers Id, Key and ConId?</p>
  
  <pre><code>import org.junit.Test;
  import com.jayway.restassured.*;
  import com.jayway.restassured.http.ContentType;
  import static org.hamcrest.Matchers.*;
  import static com.jayway.restassured.RestAssured.*;
  
  public class APIresponse
  
  {
  
      public static void main(String[] args) 
          {
              APIresponse apiresponse = new APIresponse();
              apiresponse.response();
          }
  
      @Test
      public void response ()
      {
          baseURI="http://testme/api/";
          given().
              header("Id", "abc"). 
              param("Key", "NuDVhdsfYmNkDLOZQ").
              param("ConId", "xyz").
          when().
              get("/uk?Id=DT44FR100731").
          then().
              contentType(ContentType.JSON).
              body("response.code", equalTo("200"));
      }
  
  }
  </code></pre>