Tim Almdal
d0dd6650be
When normalizing the rest request don't assume that the additional arguments are acutall a path. Leave it up to the handler to determine.
2009-12-23 13:13:03 -08:00
Tim Almdal
d622d1aa4f
Updated the unit tests to match the current API
...
Corrected a problem identified with the unit tests... failed if the path was empty on PUT.
2009-12-23 09:32:32 -08:00
Tim Almdal
367f2218f6
Use the relative url cache to look up resources instead of the relative path. This allows us to forego the extension as part of the REST url. As well, urls are consistent between normal usage and rest usage.
2009-12-09 08:41:38 -08:00
Tim Almdal
3c30d595ae
Add the REST get handler for albums/photos/movies
2009-12-08 23:28:50 -08:00
Tim Almdal
837396ca28
Change the url mapping so that path to the is part of the url
...
The request key is put in the X-Gallery-Request-Key header
The HTTP method can be override by using the X-Gallery-Request-Method header
Normalize the request data so that it doesn't matter where it comes from (HTTP get or HTTP post request)
2009-12-08 18:06:16 -08:00
Tim Almdal
fa0663d7df
Rename the backing table from rest_keys to user_access_tokens
...
Implement an api to format the errors and success messages
Removed the custom routing... urls are now /rest/<module_name>/<resource>
2009-12-08 09:19:48 -08:00
Tim Almdal
71be6cf239
The rest framework that the new gallery3 remote interface will be built on. At the moment, there are no handlers to perform any functionality.
2009-12-07 18:11:26 -08:00