Introduction
In general, we’re used to exposing APIs via annotated controllers like this:
Java
@GetMapping(“/products”)
public Flux<ProductDto> allProducts() {
return this.productService.getAllProducts();
}
public Flux<ProductDto> allProducts() {
return this.productService.getAllProducts();
}