Attaching images to Viability test
Users would like to be able to attach images to ViabilityTest
to record progress and/or issues with germplasm germination.
In this ticket we introduce InventoryViabilityAttach
entity, add interface InventoryViabilityAttachmentService extends AttachmentService<..>
to InventoryViabilityServiceImpl
. And unit tests.
Add API endpoints (similar to the implementation in InventoryController
):
- Attach a file POST /api/v1/i/viability/attach/{inventoryViabilityId}
- Remove an attachment DELETE /api/v1/i/viability/attach/{inventoryViabilityId}/{attachmentId}
- New! List attachments GET /api/v1/i/viability/attach/{inventoryViabilityId} (this is instead of adding attachments to Details)
Also add to InventoryViabilityController
at .../attach/meta an instance of InventoryViabilityAttachController extends CRUDController<InventoryViabilityAttach, InventoryViabilityAttachmentService>
so that users can manage the records.