globocom/thumbor — pull request #132 by nhuray (2012-10-24 20:05:03+00:00)
Title: [REST Upload Module] : REST Upload API (#121) :

Hi Bernardo and Globo Team,

I've find a little time to develop the REST Upload API regarding the issue #121.

I've made this changes in the code :

- Rename the ```ImageProcessHandler``` to ```ImagingHandler```

- Rename ```image.py``` to ```imaging.py```

- Create an ```ImagesHandler``` (```images.py```) to upload new image with content in body or via multipart/form-data (POST)

- Create an ```ImageHandler``` (```image.py```) to retrieve, modify and delete existing image (GET, PUT, DELETE)

- Create 24 vows in (```upload_api_vows.py```) to test ```ImagesHandler``` and ```ImageHandler```

- Modify ```imaging.py``` to check if the 32 first characters is an image existing in storage (uploaded through the ```ImagesHandler```).

Could you review my code and tell me if it was you expect for the REST Upload Module.

Thanks.

Nicolas