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"
@GetMappinglab
public ResponseEntity lab
return null;
TODO: return a ResponseEntity containing a response of type "Resource Created", setting the "contentlength"
header to a value of and responding with a body containing the Sample object received in the request
body.
@GetMappinglab
public ResponseEntity lab@RequestBody Sample sample
return null;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
