summaryrefslogtreecommitdiff
path: root/modules/rest
AgeCommit message (Collapse)Author
2009-12-31Only create the user or the target photo in the tests that require it.Tim Almdal
2009-12-31Create a Rest_Exception class and use it to convey status to the client ↵Tim Almdal
instead of calling rest::forbidden and other rest helper error messages.
2009-12-301) Remove the rest::not_found method and replace it with "throw new ↵Tim Almdal
Kohana_404_Exception 2) Don't use the input path to lookup the item via relative_path_cache. Instead use url::get_item_from_uri method.
2009-12-29Found another where statement that required convertingTim Almdal
2009-12-27Clean up validation the check for duplicate names or slugs, finish ↵Tim Almdal
converting the rest API to Kohana 2.4
2009-12-23When normalizing the rest request don't assume that the additional arguments ↵Tim Almdal
are acutall a path. Leave it up to the handler to determine.
2009-12-23Updated the unit tests to match the current APITim Almdal
Corrected a problem identified with the unit tests... failed if the path was empty on PUT.
2009-12-22Update the api so it allows images to be uploaded.Tim Almdal
2009-12-21Added validation to the edit functionality, since we can't trust any inputTim Almdal
2009-12-18Change how request input is processed.First the input is no longer json ↵Tim Almdal
encode, All the get variables are loaded, then the post variables if the request is a post, and then the path is extracted from the uri.
2009-12-15Updates the the interface based on actually using it.Tim Almdal
2009-12-09Implement the RESTful interface for albums/photos/moviesTim Almdal
2009-12-09Use the relative url cache to look up resources instead of the relative ↵Tim Almdal
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-08Add the REST get handler for albums/photos/moviesTim Almdal
2009-12-08Correct the error message when the item is not found; remove the check for ↵Tim Almdal
no request_key (access_token) as athat is treated as public permissions
2009-12-08Change the url mapping so that path to the is part of the urlTim Almdal
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-08Add another error handler "not found" to the rest API.Tim Almdal
Implement the get_album rest request handler.
2009-12-08Rename the backing table from rest_keys to user_access_tokensTim Almdal
Implement an api to format the errors and success messages Removed the custom routing... urls are now /rest/<module_name>/<resource>
2009-12-07Delete Form_Label.php which was accidently committed.Tim Almdal
2009-12-07The rest framework that the new gallery3 remote interface will be built on. ↵Tim Almdal
At the moment, there are no handlers to perform any functionality.