Let's Build a Community of Programmers.
Subscribe Here👉 : https://goo.gl/HhwC5i
******************************************************************************
What is Validation?
You expect a certain format of request for your RESTful Service. You except the elements of your request to have certain data types, certain domain constraints.
Validation is a common requirement in all services. We will discuss Java Validation API to add validation in our beans file. When we get a request to create a user, we should validate its content. If it is invalid, we should return a proper response.
Let's see how to validate a request.
****************************************************************************************