Skip to content

. Add POST /api/v1/courses/:id/report endpoint #337

Description

@DeFiVC

What: Add an endpoint that allows users to report courses for inappropriate content, errors, or other issues.

Why: Community moderation helps maintain course quality. Users need a way to flag issues they encounter.

Scope: Create course_reports table with course_id, user_id, reason (enum: inappropriate/outdated/error/other), description, status (pending/reviewed/dismissed), created_at. Add POST endpoint. Notify admins of new reports.

Acceptance criteria:

  • Users can report courses with a reason
  • One report per user per course
  • Reports are visible to admins
  • Report count is tracked per course

Technical context:src/modules/courses/course.service.ts — course operations. src/database/schema.ts — schema definitions.


Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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