Skip to content

Session Notes API #162

@Benalex8797

Description

@Benalex8797

Priority: Medium | Labels: api, learner, notes

Description:
Allow learners to create and manage private notes tied to mentoring sessions,
with rich text storage and search.

Acceptance Criteria:

  • POST /api/v1/sessions/:id/notes — create note for a session
  • GET /api/v1/sessions/:id/notes — get all notes for a session
  • PUT /api/v1/notes/:id — update note content
  • DELETE /api/v1/notes/:id — delete note
  • GET /api/v1/notes/search?q=... — full-text search across learner's notes
  • Notes are private to the learner (mentors cannot read them)
  • Store content as plain text with max 10,000 characters
  • Add GIN full-text index on note content
  • Return notes sorted by updated_at descending

Files to Create:

  • src/routes/notes.routes.ts
  • src/controllers/notes.controller.ts
  • src/services/notes.service.ts
  • database/migrations/033_create_session_notes.sql

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions