Infrastructure low complexity backend
1
Dependencies
0
Dependents
2
Entities
0
Integrations

Description

REST API route definitions for the courses and enrollment endpoints exposed under /api/v1/courses. Applies JWT authentication middleware and role-based guards to protect coordinator-only endpoints. Validates request payloads and delegates to Course Management Service.

Feature: Course Registration & Management

course-api-routes

Responsibilities

  • Define and expose REST endpoints for course listing and detail
  • Define enrollment and withdrawal endpoints with authentication guards
  • Apply role-based access control for coordinator endpoints

Interfaces

GET /api/v1/courses
GET /api/v1/courses/:courseId
POST /api/v1/courses/:courseId/enroll
DELETE /api/v1/courses/:courseId/enrollment
GET /api/v1/courses/:courseId/participants
GET /api/v1/users/:userId/enrollments

Relationships

Dependencies (1)

Components this component depends on

Related Data Entities (2)

Data entities managed by this component