documents-Modul: Controller, Service, DTOs mit Tests #275

Closed
opened 2026-05-14 22:33:39 +02:00 by admin-mrrm · 1 comment
Owner

Neues Modul apps/api/src/modules/documents/.

Dateien:

  • documents.module.ts
  • documents.controller.ts (+spec)
  • documents.service.ts (+spec)
  • documents.dto.ts

Endpoints (dünner Proxy):

  • GET /documents?query&tags&correspondent&page
  • GET /documents/:id
  • GET /documents/:id/preview (Stream PDF)
  • GET /documents/:id/thumbnail
  • POST /documents (multipart Upload)
  • GET /tags, GET /correspondents, GET /document-types

Auth: Standard-Auth-Guard wie andere Module.

TDD: Controller-Tests mit gemocktem Service; Service-Tests mit gemocktem PaperlessClient.

Modul in app.module.ts registrieren.

Neues Modul `apps/api/src/modules/documents/`. **Dateien:** - documents.module.ts - documents.controller.ts (+spec) - documents.service.ts (+spec) - documents.dto.ts **Endpoints (dünner Proxy):** - `GET /documents?query&tags&correspondent&page` - `GET /documents/:id` - `GET /documents/:id/preview` (Stream PDF) - `GET /documents/:id/thumbnail` - `POST /documents` (multipart Upload) - `GET /tags`, `GET /correspondents`, `GET /document-types` **Auth:** Standard-Auth-Guard wie andere Module. **TDD:** Controller-Tests mit gemocktem Service; Service-Tests mit gemocktem PaperlessClient. Modul in `app.module.ts` registrieren.
Author
Owner

Bereits umgesetzt in 410afd3 (PR #311). Issue war versehentlich offen geblieben — schließe nachträglich.

Bereits umgesetzt in 410afd3 (PR #311). Issue war versehentlich offen geblieben — schließe nachträglich.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
admin-mrrm/mrrmlabapp#275
No description provided.