API Design
Endpoint conventions, auth flows, and response shapes — sampled from the REST APIs behind each project.
H-Phsar — B2B Marketplace API
/authorizationSign up, log in, and password reset flows
/authorization/api/v1/otpGenerate and email a 4-digit OTP to verify an account
/api/v1/retailer/ordersAdd to cart, save drafts, and confirm a cart as a live order
/api/v1/distributor/reportsOrder activity reports by month and year
Hengo — AI Companion for Daily Growth
/api/ai/chat/streamStream an authenticated AI coaching conversation
/api/ai/analyzerAnalyze workplace Korean tone and meaning
/api/ai/vocab/generateGenerate a structured vocabulary deck
/api/ai/goals/coachStream goal coaching with concrete next steps
Money Flow — Personal Finance PWA
/api/summaryAggregated totals for the analytics dashboard
/api/chatAsk Gemini a question about your own finances
/api/cron/recurringDaily cron — create scheduled recurring transactions
/api/cron/backupDaily cron — sync all Supabase tables to Neon
We Commerce — Multi-Vendor Marketplace
/api/v1/auth/registerRegister with a phone number; returns JWT access + refresh tokens
/api/v1/auth/refresh-tokenRotate an expired access token
/api/v1/item/popularPopular products ranked by view count
/api/v1/purchasePlace an order and generate a receipt
AuthHub — Reusable Authentication Service
/api/auth/loginAuthenticate with credentials; issues JWT access + refresh tokens
/api/auth/oauth2/googleLog in by verifying a Google ID token server-side
/api/auth/mfa/verifyComplete login with a TOTP code or a one-time backup code
/api/admin/audit-logsQuery the audit trail of security events (admin)
Dev Lab — Personal Practice & Tooling Monorepo
/api/productsPaged product listing (heang-dev-lab store admin)
/api/productsCreate a product — multipart or JSON body (heang-dev-lab)
/usersList users (heang-dev-lab)
/api/pingHealth check (heang-api-center)