Refactored request validator
This commit is contained in:
parent
faf5b1ecd8
commit
5c6ce45f8d
|
@ -38,7 +38,7 @@ public class SetupController
|
|||
* @return OR response with empty body
|
||||
*/
|
||||
@PostMapping
|
||||
public ResponseEntity<?> postSettings(@Validated(value = {RequestValidator.PostRequest.class}) @RequestBody SetupDto setupDto) throws Exception
|
||||
public ResponseEntity<?> postSettings(@Validated(value = RequestValidator.PostRequest.class) @RequestBody SetupDto setupDto) throws Exception
|
||||
{
|
||||
return restResponseEntityWrapper.wrap(setupService.post(setupDto));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue