I have so many Controllers and API methods in those controllers. I have this AWS - Swagger configuration in all the API methods. Is there any option to simplify this? I want to move this repetitive annotation configuration @Extension's to somewhere, so that I do not need to type again and again.
@Operation(extensions = { @Extension(name = "amazon-apigateway-integration", properties = {
@ExtensionProperty(name = "type", value = "HTTP_PROXY"),
@ExtensionProperty(name = "httpMethod", value = "POST"),
@ExtensionProperty(name = "uri", value = "http://localhost:9090/addUser"), }) }, summary = "Add User API", responses = {
@ApiResponse(responseCode = "403", content = @Content(mediaType = "application/json")) })
@PostMapping(value = "addUser")
public ResponseEntity<Object> addUser(Authentication authentication, @RequestBody UserDTO userDTO)
throws VerificationException { }