added

Session Attendance API Enhancements

Session Attendance

  • Introduced new endpoints for managing session attendance:

    • POST /session-attendances/create to create attendance records
    • PUT /session-attendances/update/{session_attendance_id} to update existing records
    • Enhanced validation to ensure:
      • API user authorization for event access
      • Registrant and session belong to same event
      • Prevention of duplicate attendance records
  • Added support for comprehensive attendance tracking with fields:

    • check_in_date - Timestamp for session check-in
    • check_out_date - Timestamp for session check-out
    • duration - Total attendance duration
    • checked_in_by - User who recorded check-in
    • checked_out_by - User who recorded check-out
  • Implemented robust validation rules:

    • Prevent updates to registrant_id and session_id after creation
    • Ensure unique attendance records per registrant/session pair
    • Validate event ownership and access permissions