Develop the REST Controllers
Let’s learn to use annotations like `@RestController` and `@RequestMapping` to expose the REST APIs.
We'll cover the following...
We'll cover the following...
Create REST controller
Create the TodoTypeController class in the io.educative.controllers package to work as a REST controller.
In the above code section, we see the following annotations that help expose the REST APIs:
- The
@RestControllerannotation combines the@Controllerand@ResponseBodyannotations to mark the class as a request handler and