Created
June 29, 2022 13:00
-
-
Save atesibrahim/5eb455807f939d2c586942ce3f94ad72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/products") | |
@RequiredArgsConstructor | |
public class ProductController { | |
private final ProductService productService; | |
@PostMapping | |
public ProductDispenseResponse dispense(@Valid @RequestBody ProductRequest productRequest) { | |
return productService.dispense(productRequest); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment