/**
 * @openapi
 * /api/timetable_periods:
 *   get:
 *     tags: [Timetable Periods]
 *     summary: List timetable periods (tenant-scoped)
 *     description: Requires READ_TIMETABLE_PERIODS.
 *     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: [Timetable Periods]
 *     summary: Create a timetable periods record
 *     description: Requires CREATE_TIMETABLE_PERIODS.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetable_periods/count:
 *   get:
 *     tags: [Timetable Periods]
 *     summary: Count timetable periods
 *     description: Requires READ_TIMETABLE_PERIODS.
 *     responses:
 *       200: { description: Count. }
 * /api/timetable_periods/autocomplete:
 *   get:
 *     tags: [Timetable Periods]
 *     summary: Autocomplete timetable periods
 *     description: Requires READ_TIMETABLE_PERIODS.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/timetable_periods/bulk-import:
 *   post:
 *     tags: [Timetable Periods]
 *     summary: Bulk-import timetable periods from CSV
 *     description: Requires CREATE_TIMETABLE_PERIODS.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetable_periods/deleteByIds:
 *   post:
 *     tags: [Timetable Periods]
 *     summary: Delete multiple timetable periods records
 *     description: Requires DELETE_TIMETABLE_PERIODS.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/timetable_periods/{id}:
 *   get:
 *     tags: [Timetable Periods]
 *     summary: Get a timetable periods record by id
 *     description: Requires READ_TIMETABLE_PERIODS.
 *     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: [Timetable Periods]
 *     summary: Update a timetable periods record
 *     description: Requires UPDATE_TIMETABLE_PERIODS.
 *     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: [Timetable Periods]
 *     summary: Delete a timetable periods record
 *     description: Requires DELETE_TIMETABLE_PERIODS.
 *     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/timetable_periods.controller';
import { createCrudRouter } from '@/api/http/crud-router';

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