flow-pie/chamaa.api

Create Member Registration Endpoint

Open

#16 建立於 2025年11月1日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)HTML (4 fork)auto 404
good first issue

倉庫指標

Star
 (3 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南