Skip to content

[BE-89] Register ExternalValidationModule and expose validation endpoints #892

Description

@mftee

Overview

ExternalValidationService and its three providers (LandRegistryProvider, GovernmentIdProvider, BusinessRegistrationProvider) exist under src/external-validation/ but there is no external-validation.module.ts and the module is never imported into AppModule. None of this code is currently reachable via the API.

Files

  • src/external-validation/ (service, providers, entities, dto exist; module + controller missing)
  • src/app.module.ts

Acceptance Criteria

  • Create ExternalValidationModule registering ExternalValidationService, the ValidationRequest TypeORM repository, and all three providers
  • Import ExternalValidationModule into AppModule
  • Create ExternalValidationController with POST /documents/:id/external-validation (trigger a validation request, JwtAuthGuard) and GET /documents/:id/external-validation (latest result)
  • Returns 404 when the document does not exist and 403 when the requester does not own it
  • Uses the existing ValidationRequestDto for request/response shaping

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions