Review controller API consistency — Swagger decorators, operationIds, mapper usage, error responses, and conventions
Review the API layer of the specified module (or all modules if no argument given) for consistency and completeness. If $ARGUMENTS is provided, review only that module/file.
@ApiOperation({ operationId: "..." }) — this is required for codegen@ApiOkResponse, @ApiCreatedResponse, @ApiNotFoundResponse, @ApiBadRequestResponse, @ApiInternalServerErrorResponse){ type: DtoClass } or { description: "..." }@ApiTags("Name")@ApiBadRequestResponsefindById-style service methods have @ApiNotFoundResponseget, getById, create, update, delete)Mapper.toDto() / Mapper.toDtoList()@UsePipes(new ZodValidationPipe(schema))@Param("id", ParseUUIDPipe)createZodDto(schema)@Public()@Roles(...) decorator@CurrentUser() decoratorsrc/common/error-messages.ts@clinio/shared ErrorCode enumthrow new NotFoundException(...) — use notFound() helper instead@Controller("offices"))<name>.dto.ts, create-<name>.dto.ts<Name>Mapper.ts in mapper/ directoryFor each issue found, report:
Group issues by severity:
If no issues are found, confirm the module follows all conventions.