| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2010-01-19 | Move rest::send_headers back into Rest_Exception. | Bharat Mediratta | |
| 2010-01-19 | Make Rest_Exception extend Kohana_Exception so that we can let it | Bharat Mediratta | |
| bubble to the top and then in sendHeaders have it send the right response code. | |||
| 2010-01-19 | Extend Gallery_Unit_Test_Case instead of Unit_Test_Case. | Bharat Mediratta | |
| 2010-01-19 | Don't send headers if they're already sent. | Bharat Mediratta | |
| 2010-01-19 | Use $input instead of Input::instance() | Bharat Mediratta | |
| 2010-01-19 | Use an appropriate json content type | Bharat Mediratta | |
| 2010-01-19 | Change rest::url() to take a module name and a resource. The module | Bharat Mediratta | |
| does the rest. This function is symmetrical to rest::resolve. | |||
| 2010-01-19 | Have the rest calls return an array and print it out in the | Bharat Mediratta | |
| controller. This is a clearer workflow; controllers generate output, not helpers. It's also easier to test. | |||
| 2010-01-19 | Add rest::url() for convenience. | Bharat Mediratta | |
| 2010-01-17 | Catch ORM_Validation_Exception and turn it into a 400 Bad Request with | Bharat Mediratta | |
| appropriate error output. | |||
| 2010-01-10 | Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev | Bharat Mediratta | |
| 2010-01-09 | Fix for ticket #972 and more. In Kohana 2.4, ORM::delete_all ignores any where | Tim Almdal | |
| clauses and deletes all the entries in the table unless an array of id's are passed as the parameter. This fix used the Database_builder to specify any where conditions. Thanks psvo for find the first one. :-) | |||
| 2010-01-08 | Change url parsing in resolve() to ignore the query string. | Bharat Mediratta | |
| 2010-01-04 | Further progress on refining the REST server side code. | Bharat Mediratta | |
| 1) Deal in fully qualified URL resources through the rest interface. All rest methods are now passed the complete url in request->url. 2) Create rest::resolve() which lets individual resource definition code convert a full url into the appropriate matching resource. Implement gallery_rest::resolve() and tag_rest::resolve() 3) Reimplement tag_rest's get() and post() methods. They're much simpler now. 4) Implement the tags_rest helper which supports working with the entire tags collection. | |||
| 2010-01-03 | Simplify the REST API code. Here's what I did: | Bharat Mediratta | |
| 1) Simplify gallery_rest to return flat models, no children and do no validation for now. 2) Flatten the REST replies and use HTTP codes to indicate success/failure instead of additional status messages. 3) Use the message and error code support in the base Exception class, instead of brewing our own in Rest_Exception. 4) Get rid of rest::success() and rest::fail() -- we only need rest::reply() since all failures are covered by throwing an exception. 5) Get rid of /rest/access_key and just use /rest for authentication. 6) Inline and simplify rest::normalize_request since we only use it once 7) Change rest::set_active_user to succeed or throw an exception 8) Extract Rest_Exception::sendHeaders into rest::send_headers() Here's what's currently broken: 1) Data validation. There currently is none 2) Logging. That's gone too 3) image block and tag code is broken 4) Tests are broken 5) No movie support | |||
| 2010-01-02 | Remove the Rest_Exception::trigger method. | Tim Almdal | |
| 2010-01-02 | Correct file structure tests, Have the tests delete the userid they create ↵ | Tim Almdal | |
| so as not to impact other tests. | |||
| 2009-12-31 | Remove extra debug statement in rest_controller::access_key() and ↵ | Tim Almdal | |
| restructure the Rest_Tag_Helper_Test to only create items as required for test in each test. | |||
| 2009-12-31 | Add quotes to the module name | Tim Almdal | |
| 2009-12-31 | Move the set_active_user and normalize_request methods to rest.php helper | Tim Almdal | |
| 2009-12-31 | Only create the user or the target photo in the tests that require it. | Tim Almdal | |
| 2009-12-31 | Create 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-30 | 1) 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-29 | Found another where statement that required converting | Tim Almdal | |
| 2009-12-27 | Clean up validation the check for duplicate names or slugs, finish ↵ | Tim Almdal | |
| converting the rest API to Kohana 2.4 | |||
| 2009-12-23 | When 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-23 | Updated the unit tests to match the current API | Tim Almdal | |
| Corrected a problem identified with the unit tests... failed if the path was empty on PUT. | |||
| 2009-12-22 | Update the api so it allows images to be uploaded. | Tim Almdal | |
| 2009-12-21 | Added validation to the edit functionality, since we can't trust any input | Tim Almdal | |
| 2009-12-18 | Change 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-15 | Updates the the interface based on actually using it. | Tim Almdal | |
| 2009-12-09 | Implement the RESTful interface for albums/photos/movies | Tim Almdal | |
| 2009-12-09 | Use 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-08 | Add the REST get handler for albums/photos/movies | Tim Almdal | |
| 2009-12-08 | Correct 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-08 | Change the url mapping so that path to the is part of the url | Tim 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-08 | Add another error handler "not found" to the rest API. | Tim Almdal | |
| Implement the get_album rest request handler. | |||
| 2009-12-08 | Rename the backing table from rest_keys to user_access_tokens | Tim Almdal | |
| Implement an api to format the errors and success messages Removed the custom routing... urls are now /rest/<module_name>/<resource> | |||
| 2009-12-07 | Delete Form_Label.php which was accidently committed. | Tim Almdal | |
| 2009-12-07 | The 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. | |||
