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

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