Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This API will use S3 as the backing store and provide an API to upload and download the files. (S3 Presigned URLs will be used for the actual upload and download.) DynamoDB will be used to index the files, with the participant healthcode as the hash key (EDIT: user ID or health code?) and the file ID as the range key.

...

Method

URL

Description

Permissions

GET

/v3/participants/self/files?startoffsetKey=<start><key>&offsetpageSize=<offset><size>

Paginated API to return a list of file metadata. (Does not create pre-signed URLs.)

participant

GET

/v3/participants/self/files/<file ID>

Returns an HTTP 302 w/ a redirect to the the S3 pre-signed URL for download.

participant

POST

/v3/participants/self/files/<file ID>

Writes the file to the index and returns the S3 pre-signed URL for upload.

participant

DELETE

/v3/participants/self/files/<file ID>

Physically deletes the file in both the index and in S3.

participant

...