A simple application to generate the strong password.
- GET '/': Check if the server is up and running.
- POST '/'
Parameters
a. size
To define the length of the password. Should be between 1 and 16.
b. hasSpecial
True or False, defines if the password should contain special character or not.
Request Body
{
"size": 10,
"hasSpecial": true
}
Response
Success
{
"status": 200,
"message": "Successfully generated password.",
"data": {
"password": "wpBb0zxH"
}
}
Failed
{
"status": 400,
"error": "Size must be between 1 and 16."
}