Skip to content

. Add POST /api/v1/admin/courses/:id/modules/reorder endpoint #374

Description

@DeFiVC

What: Add an endpoint that allows reordering course modules.

Why: Course creators need to adjust module order as content evolves. Currently there's no way to reorder modules through the API.

Scope: Create endpoint accepting { moduleIds: string[] } in the desired order. Validate all module IDs belong to the course. Update the order field for each module.

Acceptance criteria:

  • Accepts ordered array of module IDs
  • Validates all IDs belong to the course
  • Updates module order atomically
  • Changes are logged in audit logs

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions