Skip to content

Latest commit

 

History

History
59 lines (31 loc) · 2.06 KB

README.md

File metadata and controls

59 lines (31 loc) · 2.06 KB

SpringBootCustomValidation

Custom Validation based on Annotation & we can make custom Annotation use for Validation.

CUSTOM Validation

                         STEP 1


                          API :: http://localhost:8096/custom/api/v1/validate
                          
                          TYPE :: POST
                          
                          Request Body:
                          
                            {
                              "employeeName":"Akash Kumar",
                              "employeeMobile":"8109833593",
                              "employeeCode":"5613"
                            }
                            
                          Response:
                          
                             {
                              "employeeName":"Akash Kumar",
                              "employeeMobile":"8109833593",
                              "employeeCode":"5613"
                            }
                            
                            
                            
                            
                          STEP 2
                          
                          API :: http://localhost:8096/custom/api/v1/employee
                          
                          TYPE :: POST
                          
                          Request Body:
                          
                            {
                              "employeeName":"Akash Kumar",
                              "employeeMobile":"810983359X",
                              "employeeCode":"RE5613"
                            }
                          
                          Response
                          
                          Just Think ????

Thanks Akash Kumar