flow-pie / flow-pie/chamaa.api

Create Member Registration Endpoint

Open
#16 1 comment 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
HTML
Stars
3
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Implement a POST /api/v1/members/register endpoint to allow new members to join a chama group.
Requirements:

Accepts JSON payload:

{
"full_name": "string",
"email": "string",
"phone": "string",
"password": "string"
}

Validate:

Email must be unique

Password ≥ 8 chars

Phone must be valid format (+2547...)

Hash passwords using bcrypt

Return success message and JWT token on success

Status codes:

201 Created — registration success

400 — invalid data

409 — email or phone already exists

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.