Skip to content

VyvojariSobe/hackathon-001-image-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hackathon 001 (with Atoto.cz) - image storage server

Github url

Test url

Upload new image

  • POST to http://hackathon-001.vyvojarisobe.cz/image/
  • Params:
    • url string - http://hackathon-001.vyvojarisobe.cz/test.jpg
    • content string - [IMAGE CONTENT IN BASE64]
  • Content types:
    • application/x-www-form-urlencoded - standard form data
    • application/json - json in request body

Example (standard form data)

url=http%3A%2F%2Fhackathon-001.vyvojarisobe.cz%2Ftest.jpg

or

content=[IMAGE CONTENT IN BASE64]

Example (json)

{"url": "http://hackathon-001.vyvojarisobe.cz/test.jpg"}

or

{"content": "[IMAGE CONTENT IN BASE64]"}

Result (json):

{"key":"77615240eee222785fa472f901c255d7","filesize":1017958,"updated":1457874692}

Retrieve image

Retrieve image info

Result (json):

{"key":"77615240eee222785fa472f901c255d7","filesize":1017958,"updated":1457874692}

Delete original image and all stored profiles

Delete image in specific profile

How can I specify profiles and can I use placeholder?

Yes, look into app/config.php.

About

Image Storage API podle atoto.cz ONLINE Hackathonu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published