Skip to content

Movus-Backend-Test/adpro-a8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADPRO A-8


ADPRO A-8 Service

Serverless Service for Movus Static File Upload

Live Site

https://dikdjt4qzl.execute-api.ap-southeast-1.amazonaws.com/prod/upload?name={image_name}&type={image_type}

How to use

  1. Send Get Request to https://dikdjt4qzl.execute-api.ap-southeast-1.amazonaws.com/prod/upload?name={image_name}&type={image_type} with your file and desired filename
  2. make sure input get 200 http response, example response below
    {
    "putUrl": "https://adpro-a8-staticfile.s3.ap-southeast-1.amazonaws.com/images/acil?AWSAccessKeyId={Secret}&Content-Type=image%2Fpng&Expires=1627372464&Signature={Secret}",
    "getUrl": "https://adpro-a8-staticfile.s3.ap-southeast-1.amazonaws.com/images/acil"
}
  1. Upload image to given putUrl
  2. save getUrl to database for next fetch
  3. to get image that already uploaded, fetch from getUrl

Built With

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published