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

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