Skip to content

Feature: Replace Mock User Helpers with Profile API #133

Description

@3m1n3nc3

Description

Replace hard-coded user controller helpers with Prisma-backed account/profile reads and updates.

File Location

learnault-api/src/controllers/user.controller.ts, profile service/schemas/routes, and tests

Design Reference

API Roadmap Phase 1: Replace Mock User Helpers with Profile API.

Dependencies

Tasks

  • Remove mock user/password/wallet helper implementations
  • Add owner account/profile aggregate read
  • Add validated audited profile update
  • Add consent-aware public profile read or explicitly defer it
  • Return profile completion and onboarding state
  • Test auth, not found, conflict, privacy, and update

Acceptance Criteria

  • No production user route returns hard-coded users
  • Owners update only allowed fields
  • Private data never enters public response
  • Audit/validation is tested
  • OpenAPI passes

Verification Evidence

  • Attach mock scan, redacted curl, and profile integration tests

Difficulty

Advanced

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions