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

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