summaryrefslogtreecommitdiff
path: root/modules/rest
AgeCommit message (Collapse)Author
2010-08-15We use UTF-8 everywhere. Fixes ticket #1285.Bharat Mediratta
2010-08-09Force the charset to UTF-8 when viewing the HTML form of REST output.Bharat Mediratta
2010-08-08"REST api" --> "REST API".Bharat Mediratta
2010-08-08Add a button to the user profile page to let you reset your REST APIBharat Mediratta
key. This is useful if you think it's been compromised in some way. Fixes ticket #1226.
2010-08-08Add JSONP support. You must specify &output=jsonp?callback=<js_function>Bharat Mediratta
Fixes ticket #1205.
2010-08-08Create a registry of REST resources and call it "registry".. PrettyBharat Mediratta
simple, actually. Fixes ticket #1173.
2010-07-27Merge branch 'master' into dialogTim Almdal
2010-07-27Update the mock so that all responses return arrays, not stdClass().Bharat Mediratta
2010-07-23More patches as part of #1225. Change the 'core' modules to use the json::replyTim Almdal
method to set the content type header and encode the response as a json object
2010-07-20Fix internationalization of REST key.Bharat Mediratta
2010-07-16POST requests create a new entity and should result in a 201 CreatedBharat Mediratta
reply with a Location field that matches the URL of the newly created resource. Fixes ticket #1178.
2010-07-16Trap 404s and return Rest_Exception instead. Fixes ticket #1213.Bharat Mediratta
2010-06-20Remove trailing ?>Bharat Mediratta
2010-06-20Rename error_rest.php to error_rest.json.php so that we specify theBharat Mediratta
result type in the filename as is our convention for views.
2010-06-19$response is optional in the Rest_Exception constructor.Bharat Mediratta
2010-06-19Throw exceptions as appropriate, but allow the Kohana exceptionBharat Mediratta
handling framework to handle the exception and delegate to our template, which will JSON encode the response.
2010-06-19Oops. Fix up a bad instance of $user in rest::access_key() introducedBharat Mediratta
in my last change.
2010-06-18Simplify rest::get_access_key($user) to rest::access_key() thatBharat Mediratta
returns just the access key string for the active user. That's how we use the API, so keep it simple.
2010-06-18change single to double quotes.Bharat Mediratta
2010-06-15Guard against relationships() not returning an array.Bharat Mediratta
2010-06-15Update the description.Bharat Mediratta
2010-06-13Merge branch 'master' into talmdal_devTim Almdal
2010-06-11Send back the REST API version as a header. It's on every request,Bharat Mediratta
which sucks, but it's totally unobtrusive because it's a header so that's ok. Decided that the current version is "3.0" although it will surely change before the final 3.0 release. Fixes ticket #1148
2010-06-10Tweak the error response for rest requests to make it easier for the client ↵Tim Almdal
to extract error information.
2010-06-08Don't use the standard error formatting for exceptions that have occurred as ↵Tim Almdal
part of a REST request. Format the exception as a json encoded text string so the client can extract the fault information if they so choose.
2010-06-08The status message for an HTTP 400 status should always be 'Bad Request', if ↵Tim Almdal
I'm reading the specification right.
2010-06-07Merge branch 'master' into talmdal_devTim Almdal
2010-06-07If the identity provider changes then delete all the rest user_access_keys, ↵Tim Almdal
as they are no longer valid. (i.e. all the related users have been deleted.)
2010-06-06Merge branch 'master' into talmdal_devTim Almdal
2010-06-05Add an advanced setting to allow developers to allow guest access toBharat Mediratta
REST entities.
2010-04-21Merge branch 'master' into talmdal_devTim Almdal
2010-04-17Update tests to reflect recent changes to the REST API.Bharat Mediratta
2010-04-07Merge bharat_dev rest implementationTim Almdal
2010-04-06Merge branch 'master' into talmdal_devTim Almdal
2010-04-04REST changes: Allow PUT and POST requests to modify members, notBharat Mediratta
just entity. TESTS ARE NOT UPDATED YET. - Fix item_rest::get() to maintain the proper sort order, which requires duplicating some Item_Model code. - Elide "weight" from the REST version of item - Adjust the weight of members according to the order they're returned from the client. You can't add or remove members here, you can only reorder them. - Changed the wire protocol to handle more complex values. Now "entity" and "members" are JSON encoded. The Gallery3 helper does this correctly. - Changed the wire protocol for tag_item -- now it stores the tag and item urls in the entity, not as members. This is more consistent. - Added missing security for renaming and deleting tags. - Got rid of vestigial tag_rest::post(). We add/remove tags via the relationship.
2010-03-31Merge branch 'master' into talmdal_devTim Almdal
Conflicts: modules/rest/controllers/rest.php
2010-03-30Rest -> RESTBharat Mediratta
2010-03-30Rename "access_token" to "access_key" in the code for consistency.Bharat Mediratta
2010-03-30Rename "user_access_tokens" table to "user_access_keys" as step 1 of aBharat Mediratta
multi step process to refer to REST access keys as "access_key" everywhere. Bump the rest module to version 2.
2010-03-21If the access token is not set, then look in the post data.Tim Almdal
2010-03-13Merge branch 'master' into talmdal_devTim Almdal
2010-03-13Whitespace correctionTim Almdal
2010-03-13Changes to support updating the child elements within an album. In this ↵Tim Almdal
change the urls of the children are sent up asan array of post fields children[0].... children[n]. If an existing child is not included it is deleted. Including a url to an child in another album will move the child. Changing the order of the children will respect the order of the children, if the sort column is 'weight'
2010-03-13Update tests to reflect the fact that you have to be logged in to do anything.Bharat Mediratta
2010-03-13Guests don't get access to the REST API.Bharat Mediratta
2010-03-05Update tests to reflect the fact that you have to be logged in to do anything.Bharat Mediratta
2010-03-03Guests don't get access to the REST API.Bharat Mediratta
2010-03-03Update the copyright to 2010. It's only 3 months into the year :-)Bharat Mediratta
2010-02-24Remove redundant print statement. rest::reply() does the print so having the ↵Tim Almdal
extra print statement could lead to problems.
2010-02-20When using rest::reply(), don't call var_export() if the response is empty.Bharat Mediratta