Direction: Choose the correct option
Q1.
What is @RestController?
Direction: Choose the correct option
Q2.
How do you map a method to HTTP GET in a REST controller?
Direction: Choose the correct option
Q3.
What does @PostMapping do?
Direction: Choose the correct option
Q4.
How do you handle a PUT request in a REST controller?
Direction: Choose the correct option
Q5.
Which annotation is used for DELETE mapping?
Direction: Choose the correct option
Q6.
What is the purpose of @PatchMapping?
Direction: Choose the correct option
Q7.
How do you extract a path variable from URL?
Direction: Choose the correct option
Q8.
How do you access query parameters in a REST controller?
Direction: Choose the correct option
Q9.
What does @RequestBody do?
Direction: Choose the correct option
Q10.
How do you customize the HTTP response status?
