/**
 * @openapi
 * /api/grades:
 *   get:
 *     tags: [Grades]
 *     summary: List grades (tenant-scoped)
 *     description: Requires READ_GRADES.
 *     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: [Grades]
 *     summary: Create a grades record
 *     description: Requires CREATE_GRADES.
 *     responses:
 *       200: { description: Created. }
 *       400: { $ref: '#/components/responses/ValidationError' }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/grades/count:
 *   get:
 *     tags: [Grades]
 *     summary: Count grades
 *     description: Requires READ_GRADES.
 *     responses:
 *       200: { description: Count. }
 * /api/grades/autocomplete:
 *   get:
 *     tags: [Grades]
 *     summary: Autocomplete grades
 *     description: Requires READ_GRADES.
 *     responses:
 *       200: { description: Autocomplete results. }
 * /api/grades/bulk-import:
 *   post:
 *     tags: [Grades]
 *     summary: Bulk-import grades from CSV
 *     description: Requires CREATE_GRADES.
 *     responses:
 *       200: { description: Imported. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/grades/deleteByIds:
 *   post:
 *     tags: [Grades]
 *     summary: Delete multiple grades records
 *     description: Requires DELETE_GRADES.
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 * /api/grades/{id}:
 *   get:
 *     tags: [Grades]
 *     summary: Get a grades record by id
 *     description: Requires READ_GRADES.
 *     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: [Grades]
 *     summary: Update a grades record
 *     description: Requires UPDATE_GRADES.
 *     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: [Grades]
 *     summary: Delete a grades record
 *     description: Requires DELETE_GRADES.
 *     parameters:
 *       - in: path
 *         name: id
 *         required: true
 *         schema: { type: string, format: uuid }
 *     responses:
 *       200: { description: Deleted. }
 *       403: { $ref: '#/components/responses/ForbiddenError' }
 */
import gradesController from '@/api/controllers/grades.controller';
import { createCrudRouter } from '@/api/http/crud-router';

export default createCrudRouter(gradesController, { permission: 'grades' });
