Source:
apps/erp-backend/src/source/source.controller.ts. Base path: /api/entities/:entityId/sources.GET /sources
List every Source for the Entity, each annotated with the count of Invoices it has produced.
- Response: array of
sourceWithInvoiceCountSchema.
POST /sources
Create a Source.
- Body:
CreateSourceDto. - Response:
sourceWithInvoiceCountSchema.
PATCH /sources/:sourceId
Rename a Source. The controller method is renameSource; other attributes are not updated here.
- Body:
UpdateSourceDto. - Response:
sourceWithInvoiceCountSchema.
DELETE /sources/:sourceId
Delete a Source. Sources referenced by existing Invoices or attached Source Feeds are refused.
- Response:
sourceWithInvoiceCountSchema.