Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(TK-007):Create rest endpoint on OBS to service the registration of a bank account #24

Open
NkwaTambe opened this issue Oct 16, 2024 · 0 comments
Assignees

Comments

@NkwaTambe
Copy link
Contributor

NkwaTambe commented Oct 16, 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

@Koufan-De-King Koufan-De-King transferred this issue from ADORSYS-GIS/webank-UserApp Oct 17, 2024
@NkwaTambe 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
@Elwizzy12 Elwizzy12 assigned Elwizzy12 and unassigned Elwizzy12 Oct 17, 2024
@Arielpetit Arielpetit assigned Arielpetit and unassigned Elwizzy12 Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants