Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com
Validate Password
openspecimen/rest/ng/users/validatePassword/{password}
Use this resource for validate the password. Use HTTP POST method to call this API by passing the below details in JSON format.
Below are the attributes which need to be sent in the request body:
Parameter | Details |
---|---|
password | Password that needs to be validate |
http[s]:<host>:<port>/openspecimen/rest/ng/users/validatePassword/{password}
Use this URL to validate password in openSpecimen application.
Result:
The response of this request will contains the details of the validated password.
Below is the example of the validate password:
URL | openspecimen/rest/ng/users/validatePassword/{password} |
Method | POST |
Request | application / json |
Response | true / false |
Conditions For Password Validation :
- Password Should be of length 8-20 characters
- Password Should contain at least one numeric field [ 0 - 9 ]
- Password Should contain at least one capital letter [ A - Z ]
- Password Should contain at least one small letter [ a - z ]
Error Cases :
code | Applies to | Status Message |
---|---|---|
200 | All resources | Password has been validated successfully |
400 | All requests | Password is not in required format |
500 | All requests | Internal server error, encountered server error while performing operations |
Got feedback or spotted a mistake?
Leave a comment at the end of this page or email contact@krishagni.com