
Delete Method in Rest Assured
Here is the simple example to perform delete in rest assured.
package session02;
import org.testng.annotations.Test;
import io.restassured.RestAssured;
public class TestDeleteMethod {
@Test
public void test05() {
RestAssured.baseURI = "https://reqres.in/api/users/52";
RestAssured.given()
.when()
.delete()
.then()
.statusCode(204).log().all();
}
}