I have a spring application, I want to add high-level validation against all calls to every controller, that will validate path variable value for permission manners
example:
@RestController
@RequestMapping(value = "/user/{userId}", produces = "application/json")
public class ValidationController {
@PostMapping(value = "/update-status")
@ResponseBody
public void updateStatus(@PathVariable Integer userId) {
////////some code;
}
}