I am forming io.restassured request/response in following manner
Response response = RestAssured.given().headers("Authorization", "Bearer token).contentType(ContentType.JSON).body(tempJsonString).post(MY_ENDPOINT).
andReturn();
I want to create the request in step by step manner for e.g.,
//Authorization
RequestObject request = RestAssured.given().headers("Authorization", "Bearer"+token);
//Adding body; tempJsonString is already defined
request = request.body(tempJsonString);
//Adding HTTP Verb; MY_ENDPOINT is already defined
request = request.post(MY_ENDPOINT)
//Finally
Response response = request().andReturn();
Is it possible in io.restassured DSL?