Is there a way in micronaut to generate endpoints in a way like we do it in spring-boot via spec.yaml file?

our code represented an endpoint

```
@Override
public ResponseEntity<UserDetailsDto> createUser(UserDto userDto) {
    User user = repository.save(new User(userDto.getName(), userDto.getEmail()));
    return ResponseEntity.ok().body(new UserDetailsDto(user.getId(), userDto.getName(), userDto.getEmail()));
}

```

endpoint generated via spring boot openapi generator

```
/**
 * POST /users : Create a new user
 * Create a new user
 *
 * @param userDto  (required)
 * @return successful operation (status code 200)
 */
@ApiOperation(value = "Create a new user", nickname = "createUser", notes = "Create a new user", response = UserDetailsDto.class, tags={ "users", })
@ApiResponses(value = { 
    @ApiResponse(code = 200, message = "successful operation", response = UserDetailsDto.class) })
@RequestMapping(value = "/users",
    produces = { "application/json" }, 
    consumes = { "application/json" },
    method = RequestMethod.POST)
ResponseEntity<UserDetailsDto> createUser(@ApiParam(value = "" ,required=true )  @Valid @RequestBody UserDto userDto);

```