Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 450 Bytes

README.md

File metadata and controls

32 lines (24 loc) · 450 Bytes

asl-attachments

About

Microservice for proving S3 storage of attachments

Usage

To run a local instance:

npm run dev

Uploading a file

This will return a response with a token to identify the attachment

curl -X POST http://localhost:8092 -F "file=@/image/location.jpg"

Result:

{
    "token":"acbdef123"
}

Download a file

Using the token returned by the upload

http://localhost:8092/acbdef123