I'm developing my rest API and I would want to have a dynamic list of endpoints. I'm using following approach:
@Controller("/")
public class Resource {
@PostMapping(path = {"request1", "request2"})
public Mono<ResponseEntity> postData(ServerHttpRequest request) {
return Mono.fromSupplier(() -> ResponseEntity.ok().build());
}
}
So I would like to know if it's possible to retrieve values for path field of PostMapping dynamically from the properties?
Thanks in advance