Commit graph

25 commits

Author SHA1 Message Date
Shaun McDonald
d9e070e069 Doing a resync from mainline 8633:10895. There was one simple to resolve conflict on app/models/node.rb. Also moving the migrations for API0.6 to new sequence numbers since there was some new migrations added to mainline, where the migration numbers would conflict if not moved. 2008-09-25 15:06:05 +00:00
Tom Hughes
34189cf761 Add basic support for logically deleting a user. 2008-08-24 16:53:42 +00:00
Shaun McDonald
5f8ab9e924 Merge changes from trunk 7673:8632. 2008-07-03 13:06:24 +00:00
Tom Hughes
abb66fa808 Disable the data browswer when the database is not available. 2008-06-26 17:36:21 +00:00
Tom Hughes
2cf15b549e Add support for putting the site in an offline mode where it operates
without a database but with most features disabled.
2008-06-22 12:10:32 +00:00
Christopher Schmidt
322f3d7576 make error_message spit out the message text to the user as well as
putting it in the header.
2008-05-11 23:12:54 +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
6ba4e831a7 Ignore exceptions looking up a user from a session. 2007-08-16 13:07:24 +00:00
Tom Hughes
0a8c26e596 Various updates to the user management, including the creation of a
preferences table and moving tokens into a tokens table so that a user
can have more than one.
2007-08-14 23:07:38 +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
97d5d1d385 Make passwords with a colon in them work. 2007-06-27 18:46:23 +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
d27ff25473 Improve handling of login/logout some more to improve the chances of
us ending up on the right page afterwards.
2007-06-11 23:49:03 +00:00
Richard Fairhurst
4769eec5aa TomH's patches 2007-05-28 14:54:50 +00:00
Steve Coast
40c7e0f9aa apply patch from TomH for #477 and dont require http auth on GET to the API. 2007-05-24 11:20:16 +00:00
Jörg Ostertag
20ae3232cd small typeo 2007-05-05 09:47:01 +00:00
Nick Burch
1733e8990a When we hit an error in /api/0.x/map, include a more helpful explanation of what's wrong in an error header (ruby's CGI stuff won't let you set it as the HTTP status message) 2007-04-08 16:29:06 +00:00
Steve Coast
668f8020cc simplify grabbing of a xml base doc 2007-04-07 12:43:48 +00:00
Steve Coast
3789c7b592 throw user to login if trying to edit without logging in 2007-04-07 10:28:38 +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
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
97978ceeb9 more rails front end bits 2006-08-26 17:53:43 +00:00
Steve Coast
c8f9387420 various fixes 2006-08-18 17:54:41 +00:00
Steve Coast
d2877982a2 more skelaton stuff 2006-07-29 10:09:52 +00:00
Steve Coast
b4c0bfd8fa more basic framework 2006-07-28 21:53:30 +00:00