Scenario:
1)I have user api which has payload email,password
2)post request
3) it will generate token in response
4) This token how to get automatically from response
5) So can pass in next api
Note: need your assistance
Its resolved
String response1=RestAssured.given().contentType(ContentType.JSON).log().all().when().body(obj).when().post().then().extract().path("token").toString();
Yes .. coreect...