Skip to content

Examples of direct image upload to kraken.io via kraken-io-api

Notifications You must be signed in to change notification settings

joraclista/kraken-io-api-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

kraken-io-api-example

This is simple maven based project. use mvn clean package to build it.

This project depends on kraken-io-api and it's goal is to provide example of direct file upload to kraken.io image optimization API.

This is spring boot project, to run it just run main on Application class.

Application has two controllers:

  1. one to recieve callbacks from kraken.io which are basically post requests

       1.1 with form-multipart data for all optimizations except of multiple-resize optimization 
       
       1.2 with json for multiple-resize optimization (yep, kraken io has for some reason different media types for these two)
    
  2. another is for handling file upload requests to kraken:

       2.1 try http POST to ${YOUR_PROTOCOL_HOST_PORT}/kraken/file/upload/image/sync/optimize with 
       
             2.1.1 Content-Type: multipart/form-data, 
             
             2.1.2 request part `file` should contain file
    

About

Examples of direct image upload to kraken.io via kraken-io-api

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages