I tried to follow postreqex2 example but after you posted I saw the JSON but did not see the pass response in the lecture video
Also when I tried I am getting an error see attached screen shot
Below is what I am seeing when I tried to run your code not sure what mistake I did
please help
[RemoteTestNG] detected TestNG version 6.13.1
Body:
{
"firstName": "Abhinav",
"lastName": "Kaushik",
"email": "aashdhh@gmail.com",
"programme": "CSE",
"courses": [
{
"name": "Java",
"score": "70"
},
{
"name": "c Sharp",
"score": "80"
}
]
}
{
"timestamp": 1574277381397,
"status": 400,
"error": "Bad Request",
"exception": "org.springframework.http.converter.HttpMessageNotReadableException",
"message": "Could not read document: Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: java.io.PushbackInputStream@42478f28; line: 1, column: 102] (through reference chain: com.tej.entity.Student[\"courses\"]->java.util.ArrayList[0]); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token\n at [Source: java.io.PushbackInputStream@42478f28; line: 1, column: 102] (through reference chain: com.tej.entity.Student[\"courses\"]->java.util.ArrayList[0])",
"path": "/student"
}
PASSED: postreq
Your lecture screen shot there is no pass request message only JSON output