File tree Expand file tree Collapse file tree
ddd/src/main/java/com/baeldung/ddd/layers/application/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,19 +21,19 @@ public OrderController(OrderService orderService) {
2121 this .orderService = orderService ;
2222 }
2323
24- @ PostMapping (produces = MediaType .APPLICATION_JSON_UTF8_VALUE , consumes = MediaType .APPLICATION_JSON_UTF8_VALUE )
24+ @ PostMapping (produces = MediaType .APPLICATION_JSON_VALUE , consumes = MediaType .APPLICATION_JSON_VALUE )
2525 CreateOrderResponse createOrder (@ RequestBody final CreateOrderRequest createOrderRequest ) {
2626 final UUID id = orderService .createOrder (createOrderRequest .getProduct ());
2727
2828 return new CreateOrderResponse (id );
2929 }
3030
31- @ PostMapping (value = "/{id}/products" , consumes = MediaType .APPLICATION_JSON_UTF8_VALUE )
31+ @ PostMapping (value = "/{id}/products" , consumes = MediaType .APPLICATION_JSON_VALUE )
3232 void addProduct (@ PathVariable final UUID id , @ RequestBody final AddProductRequest addProductRequest ) {
3333 orderService .addProduct (id , addProductRequest .getProduct ());
3434 }
3535
36- @ DeleteMapping (value = "/{id}/products" , consumes = MediaType .APPLICATION_JSON_UTF8_VALUE )
36+ @ DeleteMapping (value = "/{id}/products" , consumes = MediaType .APPLICATION_JSON_VALUE )
3737 void deleteProduct (@ PathVariable final UUID id , @ RequestParam final UUID productId ) {
3838 orderService .deleteProduct (id , productId );
3939 }
You can’t perform that action at this time.
0 commit comments