I'm trying to find the data type of the request body fields for the below-given code
import static io.restassured.RestAssured.given;
import java.io.File;
import org.testng.annotations.Test;
import io.restassured.RestAssured;
import io.restassured.module.jsv.JsonSchemaValidator;
public class DataType {
@Test
public void dataType(){
given().header("Content-Type", "application/json").body("{\r\n"
+ " \"name\": \"Apple MacBook Pro 16\",\r\n"
+ " \"data\": {\r\n"
+ " \"year\": \"2019\",\r\n"
+ " \"price\": 1849.99,\r\n"
+ " \"CPU model\": \"Intel Core i9\",\r\n"
+ " \"Hard disk size\": \"1 TB\"\r\n"
+ " }\r\n"
+ "}")
.when().post("
https://api.restful-api.dev/objects")
.then().log().all();
}
}