openphoto/frontend — Issue #484: Add mutation options for the update API (rotate, greyscale, etc)
Author: jmathai
Created: 2012-02-01 22:20:16+00:00
State: open

I'm not sure if there are other mutations we want to make to photos but we should have an API for them all. Seems to make sense to add this functionality to the `/photo/:id/update.json` and `/photos/update.json` APIs. We won't touch the original but the mutations are applied to the `base` version of the photo which all other versions are generated from.

We should add these parameters

1. *mutations*, a comma delimited string of mutations (i.e. *mutations=rotate(90),greyscale*)

Steps to verify

1. Pass mutations into the update APIs
1. Validate that the proper method is called from the Photo model to perform the mutations