Commit graph

20 commits

Author SHA1 Message Date
Andy Allan
e85c56d151 Pluralize old_ controllers 2018-11-07 16:05:56 +01:00
Tom Hughes
ef7f3d800c Fix most auto-correctable rubocop issues 2015-02-20 08:56:16 +00:00
Tom Hughes
34e3e51456 Cleanup trailing whitespace 2015-02-20 08:56:16 +00:00
Matt Amos
0093db5ffb Removed lookup of current element in calls to history 2012-04-05 13:53:53 +01:00
Matt Amos
7953a883d0 Refactored common functionality from object history controllers 2012-04-05 13:52:10 +01:00
Matt Amos
8bfb5cae8a Added relation redaction logic, same as node and way logic, plus tests 2012-04-05 13:49:46 +01:00
Tom Hughes
071c3581e9 Disable CSRF token verification for API methods 2011-11-14 09:42:55 +00:00
Tom Hughes
fc25c3d412 Rename all ID columns that aren't unique
Having a table with a column called ID that is only part of the
primary key really doesn't work as rails likes to treat ID as a
special name so it becomes impossible to assign to it or read it.
2011-11-14 09:42:52 +00:00
Tom Hughes
986f1c61fa Use last_modified method instead of setting the header manually 2011-11-14 09:42:44 +00:00
Tom Hughes
226c41be69 Update ActiveRecord queries to use arel 2011-11-14 09:42:44 +00:00
Tom Hughes
2f3e23f6eb Move to version 2.3.2 of rails. 2009-06-04 08:08:24 +00:00
Tom Hughes
b38684e59e Add a global timeout that is applied to most API requests. 2009-05-20 22:18:36 +00:00
Matt Amos
3d0ca940d2 Using an around_handler for catching and rendering errors in most of the API controller methods. This simplifies the code and makes errors and error messages a bit more consistent. Also added a utility method for checking the HTTP method. 2009-05-20 17:39:59 +00:00
Thomas Wood
023e95f1bc Ensure :not_found status is returned, catching RecordNotFound doesn't work as isnt raised when finding :first. 2009-04-20 20:58:42 +00:00
Thomas Wood
df8cd4a7b2 Expose relation version to api and fix remaining server status typo in old_relation controller. 2009-04-20 19:44:58 +00:00
Shaun McDonald
17223b5177 Apply patch by Lars from osm dev list with the typo 2009-04-20 17:15:28 +00:00
Tom Hughes
141a5692eb Fixed to work with merged changes to api availability checks. 2009-04-16 21:38:29 +00:00
Shaun McDonald
70ecb3ceef adding the Last-Modified response header to the version action 2008-10-16 07:11:28 +00:00
Shaun McDonald
2b7a40069f adding the controller code to be able to get a specific version of a node, way or relation. Add some node checks on update. Some code indentation cleanup. 2008-10-08 18:03:41 +00:00
Frederik Ramm
d0aa199e92 - add old_relation_controller and stuff so that relation history works. fixes #557.
- minor testing fixes.
2008-03-16 23:16:18 +00:00