Adds a plan_file table to track files on plans. The files are stored in Minio, and I've added a container to the dev docker-compose environment.
New endpoints are:
GET /upload/signed-url?name=<file-name>: Get a signed URL to upload a file to Minio. <file-name> must match the name of the file being uploaded
POST /plan/:planId/attachment: Add a file attachment to a plan. File should already have been uploaded Minio.
DELETE /plan/:planId/attachment/attachmentId: Removes an attachment from a plan. Note that it doesn't actually remove the file from Minio in order for files from previous versions of a plan to still be accessible.
Adds a
plan_file
table to track files on plans. The files are stored in Minio, and I've added a container to the dev docker-compose environment.New endpoints are:
GET /upload/signed-url?name=<file-name>
: Get a signed URL to upload a file to Minio.<file-name>
must match the name of the file being uploadedPOST /plan/:planId/attachment
: Add a file attachment to a plan. File should already have been uploaded Minio.DELETE /plan/:planId/attachment/attachmentId
: Removes an attachment from a plan. Note that it doesn't actually remove the file from Minio in order for files from previous versions of a plan to still be accessible.Resolves #217