If your model and repository classes are complete, then you are ready to create the controller class where we will create the GetMapping, PostMapping, PutMapping, and DeleteMapping to create RESTful API URL paths. Let's create a controller class named UserController.kt using the @RestController annotation to create the controller class:
@RestController
class UserController {
----
----
}