/**
 * @openapi
 * /api/attendance_records:
 *   get:
 *     tags: [Attendance Records]
 *     summary: List attendance records (tenant-scoped)
 *     description: Requires READ_ATTENDANCE_RECORDS.
 *     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 Records]
 *     summary: Create a attendance records record
 *     description: Requires CREATE_ATTENDANCE_RECORDS.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_records/count:
 *   get:
 *     tags: [Attendance Records]
 *     summary: Count attendance records
 *     description: Requires READ_ATTENDANCE_RECORDS.
 *     responses:
 *       200: { description: Count. }
 * /api/attendance_records/autocomplete:
 *   get:
 *     tags: [Attendance Records]
 *     summary: Autocomplete attendance records
 *     description: Requires READ_ATTENDANCE_RECORDS.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/attendance_records/bulk-import:
 *   post:
 *     tags: [Attendance Records]
 *     summary: Bulk-import attendance records from CSV
 *     description: Requires CREATE_ATTENDANCE_RECORDS.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_records/deleteByIds:
 *   post:
 *     tags: [Attendance Records]
 *     summary: Delete multiple attendance records records
 *     description: Requires DELETE_ATTENDANCE_RECORDS.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/attendance_records/{id}:
 *   get:
 *     tags: [Attendance Records]
 *     summary: Get a attendance records record by id
 *     description: Requires READ_ATTENDANCE_RECORDS.
 *     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 Records]
 *     summary: Update a attendance records record
 *     description: Requires UPDATE_ATTENDANCE_RECORDS.
 *     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 Records]
 *     summary: Delete a attendance records record
 *     description: Requires DELETE_ATTENDANCE_RECORDS.
 *     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_records.controller';
import { createCrudRouter } from '@/api/http/crud-router';

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