when the uata or employee name lacks stivame, muutename, lascivame anu
Body
Pretty
1
2
3
4
5
6
}
}
Body
Pretty Raw Preview Visualize JSON
1
23
4
5
6
}
END
Zoom
the value of gender is not one of the following values: ["male", "female","other"], as shown Figure 7 - (0.5 marks)
500 Internal Server Error
9 ms 472 B000
GQ
Raw Preview Visualize
JSON
"error": {
"status": 500.
"message": "employee validation failed: name.middleName: MiddleName is required, name.lastName: LastName is required, name.firstName: FirstName is required, gender: female 123 is not supported"
Figure 7-Invalid employee name and gender
When the email is wrong format and the password is weak (strong password:containing at least 8 characters, including at least 1 uppercase, lowercase and special letters), as shown Figure 8- (0.5 marks).
500 Internal Server Error
9 ms 420 B
"error": {
"status": 500,
"message": "employee validation failed: account.password: Password is not strong, account.email: emily.clarkexample.com is not a valid email"
Figure 8 - Email is wrong format and Password is weak
}
+ 95%
Close