Monday, July 30, 2018

Spring RESTful Web Services Validation: A Complete Blueprint

In a previous post, we discussed how to handle exceptions in a Spring Boot Web MVC application. Building upon that, in this series of posts, let's discuss how to validate request data.

When developing a REST API, it's important to validate request data, and in case of invalid data, return a 4xx response with a precise body containing field-wise error details.



from DZone.com Feed https://ift.tt/2NW3XTX

No comments:

Post a Comment