Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (15 sloc) 0.381 kB

s3_storage

for s3 storage

start sinatra app

rackup -I . -p 3000
or
unicorn -c unicorn.conf -I . -p 3000

API

GET

curl -X GET localhost:3000/1/2/hoge.jpeg

PUT

  • resourse : world_id/file_id/file_name

    curl -X PUT --upload-file hoge.jpeg localhost:3000/1/2/hoge.jpeg
    

DELETE

curl -X DELETE localhost:3000/1/2/hoge.jpeg
Jump to Line
Something went wrong with that request. Please try again.