Infrastructure medium complexity Shared Component backend
0
Dependencies
1
Dependents
2
Entities
0
Integrations

Description

Shared service that handles transitioning a peer mentor into and out of paused status. Used by the certification feature to auto-pause mentors whose certification has expired. Shared with the peer-mentor-pause-management feature.

Feature: Peer Mentor Certification Management

pause-management-service

Responsibilities

  • Transition a peer mentor to paused status with a reason
  • Reactivate a paused peer mentor
  • Notify coordinator of status transitions
  • Enforce business rules on pause eligibility

Interfaces

pauseMentor(mentorId, reason, initiatedBy)
reactivateMentor(mentorId, initiatedBy)
getMentorPauseStatus(mentorId)
getPausedMentors(coordinatorId)

Relationships

Dependents (1)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component

API Contract

View full contract →
REST /api/v1/pause-management 4 endpoints
POST /api/v1/pause-management/:mentorId/activate Activate a pause for a mentor
POST /api/v1/pause-management/:mentorId/lift Lift an active pause and restore the mentor
POST /api/v1/pause-management/:mentorId/auto-expire Trigger automatic pause due to certification expiry
GET /api/v1/pause-management/:mentorId/status Get the current pause/active status for a mentor