/**
 * @openapi
 * /api/attendance_sessions:
 *   get:
 *     tags: [Attendance Sessions]
 *     summary: List attendance sessions (tenant-scoped)
 *     description: Requires READ_ATTENDANCE_SESSIONS.
 *     responses:
 *       200:
 *         description: List payload.
 *         content:
 *           application/json:
 *             schema: { $ref: '#/components/schemas/ListResponse' }
 *       401: { $ref: '#/components/responses/UnauthorizedError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   post:
 *     tags: [Attendance Sessions]
 *     summary: Create a attendance sessions record
 *     description: Requires CREATE_ATTENDANCE_SESSIONS.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_sessions/count:
 *   get:
 *     tags: [Attendance Sessions]
 *     summary: Count attendance sessions
 *     description: Requires READ_ATTENDANCE_SESSIONS.
 *     responses:
 *       200: { description: Count. }
 * /api/attendance_sessions/autocomplete:
 *   get:
 *     tags: [Attendance Sessions]
 *     summary: Autocomplete attendance sessions
 *     description: Requires READ_ATTENDANCE_SESSIONS.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/attendance_sessions/bulk-import:
 *   post:
 *     tags: [Attendance Sessions]
 *     summary: Bulk-import attendance sessions from CSV
 *     description: Requires CREATE_ATTENDANCE_SESSIONS.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_sessions/deleteByIds:
 *   post:
 *     tags: [Attendance Sessions]
 *     summary: Delete multiple attendance sessions records
 *     description: Requires DELETE_ATTENDANCE_SESSIONS.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_sessions/{id}:
 *   get:
 *     tags: [Attendance Sessions]
 *     summary: Get a attendance sessions record by id
 *     description: Requires READ_ATTENDANCE_SESSIONS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: The record. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *       404: { description: Not found. }
 *   put:
 *     tags: [Attendance Sessions]
 *     summary: Update a attendance sessions record
 *     description: Requires UPDATE_ATTENDANCE_SESSIONS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Updated. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 *   delete:
 *     tags: [Attendance Sessions]
 *     summary: Delete a attendance sessions record
 *     description: Requires DELETE_ATTENDANCE_SESSIONS.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 */
import controller from '@/api/controllers/attendance_sessions.controller';
import { createCrudRouter } from '@/api/http/crud-router';

export default createCrudRouter(controller, { permission: 'attendance_sessions' });
