Pocro Vento Documentation

Backend: BTC školovanje detail

GitHub Issue: #243

Last modified with commit 7a580a0 on by Aljaž.

Backend task for the BTC školovanje detail page and attendance (GET /btc-trainings/{trainingId}, POST /modules/{moduleNumber}/attendance) – check the response and save semantics against the API spec and DB structure, permissions, implement, and verify against the spec.

Docs: BTC školovanje detail Spec: GET /btc-trainings/{trainingId} (getBtcTrainingDetail), POST /btc-trainings/{trainingId}/modules/{moduleNumber}/attendance (setBtcTrainingAttendance), BtcTrainingDetail, BtcTrainingModule, BtcTrainingAttendanceRequest in api-docs/openapi.yaml DB: BtcTrainings, BtcTrainingModules, BtcTrainingCandidates, BtcTrainingAttendance in api/database/create_schema.sql

The detail endpoint is also used by the edit form and the Rezultati feedback forme page.

1. Double check API spec and DB structure

2. Implementation

3. Verify implementation against spec

Done when

The detail page shows the 4 modules with attendance, and a trainer can save attendance for each day.