You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Develop a REST API endpoint in the Online Banking System (OBS) to handle user registration for a bank account. The endpoint will accept a user's phone number and public key, generate a unique account, and communicate with the Pending Registration Service (PRS) and Deposit Account Service (DAS) to complete the registration process.
Requirements:
Create an HTTP POST endpoint /api/obs/register.
Accept input data (phone number, public key) in the request body.
Validate the incoming data.
Interact with PRS to store pending registration records.
Communicate with DAS to create an account with an initial balance (e.g., 1000).
Return a response to the client with the new account details (account ID, balance).
Acceptance Criteria:
Successful registration returns 201 Created with account details.
Failed registration due to invalid input or service issues returns appropriate error responses (400 Bad Request, 500 Internal Server Error).
PRS and DAS are integrated successfully within the registration process flow.
Dependencies:
PRS for pending registration handling.
DAS for account creation and balance initialization.
Estimate: 5
The text was updated successfully, but these errors were encountered:
NkwaTambe
changed the title
Create rest endpoint to service the registration of a bank account
(TK-007):Create rest endpoint on OBS to service the registration of a bank account
Oct 17, 2024
Description:
Develop a REST API endpoint in the Online Banking System (OBS) to handle user registration for a bank account. The endpoint will accept a user's phone number and public key, generate a unique account, and communicate with the Pending Registration Service (PRS) and Deposit Account Service (DAS) to complete the registration process.
Requirements:
Create an HTTP POST endpoint /api/obs/register.
Accept input data (phone number, public key) in the request body.
Validate the incoming data.
Interact with PRS to store pending registration records.
Communicate with DAS to create an account with an initial balance (e.g., 1000).
Return a response to the client with the new account details (account ID, balance).
Acceptance Criteria:
Successful registration returns 201 Created with account details.
Failed registration due to invalid input or service issues returns appropriate error responses (400 Bad Request, 500 Internal Server Error).
PRS and DAS are integrated successfully within the registration process flow.
Dependencies:
PRS for pending registration handling.
DAS for account creation and balance initialization.
Estimate: 5
The text was updated successfully, but these errors were encountered: