summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/data_rest.php
AgeCommit message (Collapse)Author
2010-08-14Return the right content type for album thumbnails (based on the album ↵Bharat Mediratta
cover's mime type)
2010-08-09Change the way that this works. Now instead of sending back the imageBharat Mediratta
metadata and the data itself JSON encoded, we just send back the raw data with the right Content-Type. This, combined with code in Item_Model::as_restful_array() that swaps in /rest/data urls as appropriate, means that the RESTful payload has consistent urls when permissions are in play.
2010-08-08Require the size parameter. Optional params are confusing. And beBharat Mediratta
robust in the face of a missing data file (movies and albums lack resize, albums lack full size, some albums don't have a thumb if they have no contents, etc)
2010-08-08Allow item_rest::put() to replace the current data file. RemoveBharat Mediratta
data_rest::put() altogether; it's no longer necessary.
2010-08-07A new REST resource that allows access to view and modify the actualBharat Mediratta
contents of the file, which enables REST viewers to see the actual data which is useful when the files are privileged. Currently it returns the contents of the file in JSON encoded form, which may not be the best. Multipart/mime might be much better. Fixes ticket #1224.