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

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