flow-pie/chamaa.api

Create Member Registration Endpoint

Open

#16 opened on 2025年11月1日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)HTML (4 forks)auto 404
good first issue

Repository metrics

Stars
 (3 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド