Recruitment task - login form component in Angular and API in Ballerina
The task consists of two stages:
API preparation
Preparing a component in Angular based on a mock-up
The API should be prepared in the Ballerina language (Ballerina Home).
The API should provide 5 methods
GET /users - retrieves a list of all users
GET /users/
POST /users - the request body should contain a new User object that will be added to the list of users
POST /users/resetPassword - in the body request we pass the email of the user for whom we want to reset the password. If the user with the given email address is on the list, we return the response code Accepted (202). If the user is not on the list, we return the Bad Request code (400).
POST /auth/login - we provide email and password in the body request. If the combination matches a user from the list, we return the response code Ok (200). In case of invalid combination, we return the response code Unauthorized (401)
Angular application with the ability to log in, register and reset password.