Spring Boot REST API - How to Validate Path Variables