package Apitesting;
import static io.restassured.RestAssured.given;
import io.restassured.response.Response;
public class PostReqThroJsonBody {
public static void main(String[] args) {
// TODO Auto-generated method stub
String bodystring="{"email": "[email protected]","password": "pistol"}";
Response response=given().ContentType(ContentType.JSON).body(bodystring).post("https://reqres.in//api/register");
response.prettyPrint();
}
}
wat is the error in above code
New contributor
SATISH KUMAR K is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.