testing update + docs
This commit is contained in:
@@ -1,6 +1,23 @@
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
// Package scheduling contains tests for working hours and availability endpoints.
|
||||
//
|
||||
// Test Coverage:
|
||||
// - GetDefaultHours: GET /api/scheduling/default-hours - Get default weekly hours
|
||||
// - UpdateDefaultHours: PUT /api/scheduling/default-hours - Update default hours (admin)
|
||||
// - ListExceptionalGroups: GET /api/scheduling/exceptional-groups - List holiday hour groups
|
||||
// - CreateExceptionalGroup: POST /api/scheduling/exceptional-groups - Create group (admin)
|
||||
// - DeleteExceptionalGroup: DELETE /api/scheduling/exceptional-groups?id=X - Delete (admin)
|
||||
// - GetWorkingHours: GET /api/scheduling/working-hours?start=X&end=Y - Get hours for date range
|
||||
// - GetAvailableHours: GET /api/scheduling/available-hours?start=X&end=Y - Get available slots
|
||||
// - UpdateExceptionalApplications: PUT /api/scheduling/exceptional-applications - Apply holidays
|
||||
//
|
||||
// Authentication: Update/Create/Delete endpoints require admin role (403 for non-admins).
|
||||
package scheduling
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
package scheduling
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user