Commit graph

23 commits

Author SHA1 Message Date
Matt Amos
990f3eba40 Altered old_way stuff to be Railsy like old_node is now 2012-04-05 13:49:43 +01:00
Kai Krueger
72e59b49fa Copy the redaction code from nodes to ways 2012-04-05 13:49:39 +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
Tom Hughes
5449cf4adc Merge 14394:14533 from trunk. 2009-04-16 21:11:12 +00:00
Tom Hughes
09fdee5493 Add a "database readonly" state that allows all writes to the database
to be suppressed.
2009-04-14 14:27:30 +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
Tom Hughes
9c01c4cb63 Allow the API to be taken offline completely as well as being put into
readonly mode,
2007-09-20 23:51:11 +00:00
Tom Hughes
e70d94c54a Don't create sessions for API calls. 2007-08-14 13:59:07 +00:00
Tom Hughes
9b04fb5789 Enable compression for object history API calls. 2007-08-09 11:41:38 +00:00
Tom Hughes
dcad29dad0 Split the rest action into sparate read, update and delete actions thus
allowing authorization to be done on a per-action basis without worring
about the method. This should make the user API work.

Also do a lot of cleanup of the controllers.
2007-06-27 17:27:10 +00:00
Richard Fairhurst
ed0ac139d2 TomH's way history patch 2007-06-08 10:40:26 +00:00
Steve Coast
c91b86a1d1 change mime type and reformat search controller 2007-04-18 11:25:59 +00:00
Steve Coast
e799022131 rails API support for history of node/segment/way + various bugfixes and cleanups 2006-11-30 18:44:40 +00:00
Steve Coast
db1e02adb5 rails way bits 2006-11-27 10:35:10 +00:00
Steve Coast
222d31e435 way stuff 2006-08-26 20:49:16 +00:00