Gabriel Ebner
7151fa05e4
api06: simplify exception handling and add exception handling to the diff
...
upload.
2008-05-13 12:15:06 +00:00
Gabriel Ebner
ea1961e3ce
api06: s/delete_with_relations_and_history/delete_with_history/g
2008-05-12 21:10:38 +00:00
Gabriel Ebner
86b4d1bc2c
api06: Move version-checking into the models, raising an exception on mismatch
...
(still not implemented for delete requests though.)
2008-05-12 21:05:11 +00:00
Christopher Schmidt
618908319c
prevent update of any object without providing the correct/current
...
version as part of the XML. This affects update-only at this time:
DELETE doesn't work the same way because we don't provide the data as
part of a DELETE
2008-05-11 21:49:33 +00:00
Christopher Schmidt
7a216c0ce6
Make edits return version numbers as plain text strings
2008-05-11 19:47:19 +00:00
Gabriel Ebner
6ebb7045fe
api06: Fix diff uploading (still doesn't give a useful response):
...
Modification and deletion works fine now. Rollback also works apparently.
Just auto increment doesn't get reset.
2008-05-04 15:16:58 +00:00
Gabriel Ebner
3d6e1c67fb
api06: Preliminary support for diff uploading. This will not return anything
...
useful and the code will need some heavy refactoring.
2008-05-04 13:52:43 +00:00
Gabriel Ebner
6ae23bed90
split_node_tags:
...
- Use InnoDB.
- Put version column on the current_* tables.
- Use transactions (untested).
2008-05-03 16:27:49 +00:00
Tom Hughes
9ff462e96c
Remove pointless return statement.
2008-02-03 15:55:19 +00:00
Tom Hughes
59e2349b5a
Make ways_for_node work with the multipart primary key stuff.
2008-01-28 08:54:45 +00:00
Steve Coast
bbd769304c
dont eager load tags (false primary key fucks all sorts of things up) and move delete way logic to model so that amf_controller can use it (plan is to do this with all of the methods. sigh.)
2008-01-25 14:32:45 +00:00
Steve Coast
db33aa6ff6
begin rdoc documentation
2008-01-24 12:53:21 +00:00
Steve Coast
3e355d7dc0
emit last-modified headers on nodes and ways
2008-01-21 17:41:57 +00:00
Tom Hughes
f09b16cade
When asked for ways which use a node, or relations which use some given
...
object, return 200 OK with an empty document if not matches are found
rather than 400 Bad Request (for ways) or 404 Not Found (for relations).
2007-11-24 14:47:50 +00:00
Tom Hughes
e4df9a8219
Allow objects to be resurrected.
2007-10-31 15:52:36 +00:00
Tom Hughes
0fd29dc003
Render an empty text string instead of nothing (which actually generate a
...
single space character) for 410 and 412 responses as there is a bug in
lighttpd (http://trac.lighttpd.net/trac/ticket/1055 ) that prevents it
passing on the response body for these codes, leading to the client blocking
waiting for the data until it times out. Closes #537 .
2007-10-17 23:22:51 +00:00
Gabriel Ebner
e03ea17a22
rails_port_0.5: Merge rails_port r4643
2007-09-22 19:55:33 +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
Gabriel Ebner
cfbdd3f7e1
Merge rails_port as of r4613 & fix tests.
2007-09-20 14:37:29 +00:00
Tom Hughes
e15916ad5b
Let exceptions propagate to the default handler for ways so they are logged.
2007-08-31 18:10:44 +00:00
Frederik Ramm
78b440ffc1
preliminary commit 0.5 API with relations / untested after entity-relation rename, some changes still in queue
2007-08-29 22:00:26 +00:00
Tom Hughes
9738e3f648
Handle errors a bit better.
2007-08-20 14:22:51 +00:00
Tom Hughes
e70d94c54a
Don't create sessions for API calls.
2007-08-14 13:59:07 +00:00
Tom Hughes
9dbe1a497a
Add a flag to allow the API to be placed in read-only mode.
2007-07-26 17:15:23 +00:00
Tom Hughes
7901811752
Make sure we clear the tags and segments for a way when it is deleted.
...
Also remove some redundant setting of timestamps that will be overwritten
by the model when saving.
2007-06-27 23:44:40 +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
Tom Hughes
0c198107af
Correctly record which user deleted an object.
2007-06-22 15:37:57 +00:00
Tom Hughes
2c98558c86
Add support for segment/:id/ways and node/:id/segments API calls. Fixes #452 .
2007-06-21 22:52:40 +00:00
Tom Hughes
c11d961f62
Close a number of holes in the API by making it validate changes
...
more carefully.
2007-06-19 23:20:39 +00:00
Robert (Jamie) Munro
6ace541442
Made way controller return text/xml instead of text/html. Fixes #450
...
Also fixed some line endings and trailing spaces.
2007-05-13 14:06:55 +00:00
Steve Coast
6d8353821b
cleanup
2007-05-07 15:00:33 +00:00
Nick Burch
343e01bb86
Support getting a way, and all the segments and nodes it depends on, via /way/:id/full
2007-04-22 11:06:48 +00:00
Steve Coast
c91b86a1d1
change mime type and reformat search controller
2007-04-18 11:25:59 +00:00
Steve Coast
668f8020cc
simplify grabbing of a xml base doc
2007-04-07 12:43:48 +00:00
Dan Moore
d07277efba
API 0.4 Updates - work on traces pages + pagination, edit tab, some API testing
...
* traces - added some routes, replicated data access / pagination, but presentation and pending file control not complete
* edit - setup so that applet can be loaded + token authorisation enabled
* API - tests out ok against applet, but had to change segment-node associations
* misc - gems version required upgraded to 1.2.3 (latest stable rails version), changed some find_first to find(:first... calls
2007-03-23 23:13:19 +00:00
Nick Black
932c2d4f8f
New way id is now returned complete
2007-03-20 13:07:38 +00:00
Nick Black
f75401ae29
Fixed precondition typo and segment_controller foreign key
2007-03-12 15:49:11 +00:00
Steve Coast
9189093997
precondition stuff
2006-12-13 16:05:37 +00:00
Steve Coast
c38e4bf4a0
compression!
2006-12-01 11:07:31 +00:00
Steve Coast
25936fad05
ways plural api
2006-12-01 10:09:18 +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
1a6765f1a2
ways now work
2006-11-27 13:05:27 +00:00
Steve Coast
db1e02adb5
rails way bits
2006-11-27 10:35:10 +00:00
Steve Coast
b95e9d2759
more way bits
2006-08-26 21:36:21 +00:00
Steve Coast
222d31e435
way stuff
2006-08-26 20:49:16 +00:00