Question: / * * * TODO: return a ResponseEntity containing a response of type Bad Request, as well as a String in the body * that

/**
* TODO: return a ResponseEntity containing a response of type "Bad Request", as well as a String in the body
* that says "Bad Request"
*/
@GetMapping("/lab1")
public ResponseEntity lab1(){
return null;
}
/**
* TODO: return a ResponseEntity containing a response of type "Resource Created", setting the "content-length"
* header to a value of "100", and responding with a body containing the Sample object received in the request
* body.
*/
@GetMapping("/lab2")
public ResponseEntity lab2(@RequestBody Sample sample){
return null;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!