Andy Allan
28af501924
Merge branch 'pull/3164'
2021-04-14 16:13:29 +01:00
Michal Migurski
143a90fcac
Added root elements and dict support for preferences response
2021-04-07 17:45:24 -07:00
Andy Allan
6f2e3e9508
Add missing root attributes to User#show and User#index json responses
2021-04-07 16:30:08 +01:00
Michal Migurski
fd7526857b
Updated JSON response format per feedback
2021-04-06 21:44:38 -07:00
Michal Migurski
a67ff9c038
Added JSON support to user preferences
2021-04-06 21:27:54 -07:00
mmd-osm
37a7996d94
API User details: format tweaks
...
- _show_ to return single user only
- remove nesting for languages
2020-09-18 21:50:38 +02:00
mmd-osm
0fb725ea61
API User details JSON format
2020-09-06 22:11:23 +02:00
Tom Hughes
2d3972249c
Fix some rubocop todos
2020-08-02 19:38:58 +01:00
mmd-osm
7fcb76aa9a
JSON: move root_attributes to shared folder
2020-01-22 22:47:47 +01:00
mmd-osm
b54333fa6d
Unify lat/lon formatting for json output
2020-01-02 14:52:53 +01:00
mmd-osm
75a49786f8
API JSON output
2019-12-30 16:37:52 +01:00
Tom Hughes
81fb26d840
Merge remote-tracking branch 'upstream/pull/2434'
2019-11-20 19:17:29 +00:00
Tom Hughes
b5d4c262dd
Switch to using jbuilder for JSON templates
2019-11-20 18:54:04 +00:00
Andy Allan
8ad88b9ddc
Move user preference XML generation to a view
2019-11-20 16:39:23 +01:00
Tom Hughes
91a37235ac
Remove support for old style user images
2019-07-16 22:33:26 +01:00
Tom Hughes
6c202448ad
Move user images to Active Storage with paperclip as a fallback
2019-07-09 19:17:30 +01:00
mmd
11cc4a5e60
Merge branch 'master' into patch/view_migration
2019-06-27 22:40:51 +02:00
mmd-osm
cf3cf5216f
Avoid unnecessary arrays
2019-06-27 18:33:12 +02:00
mmd-osm
d0de9967b9
Simplify partial rendering
2019-06-26 22:29:18 +02:00
mmd-osm
45e7c9a32e
Avoid using @variables in partials
2019-06-26 21:34:40 +02:00
Tom Hughes
a66c34991a
Merge remote-tracking branch 'upstream/pull/2280'
2019-06-26 19:57:12 +01:00
Andy Allan
2398614349
Add support for an unversioned 'versions' API call
...
This will eventually replace the unversioned 'capabilities' call.
Client applications can use this versions call to find out what versions
are available, if they support multiple versions. The capabilities
of each version, and the format of the capabilities call, is then
able to change between versions. If a client only supports one version
they can jump straight to the versioned capabilities call.
Additionally, supported versions are now a list of version identifiers,
without any implications surrounding min/max values (e.g. guesswork
for supported intermediate versions).
Fixes #2162
2019-06-26 16:52:10 +02:00
Tom Hughes
cbea796ef4
Merge remote-tracking branch 'upstream/pull/2207'
2019-06-26 14:30:30 +01:00
Tom Hughes
f280dcb2d7
Merge remote-tracking branch 'upstream/pull/2278'
2019-06-26 13:36:44 +01:00
Andy Allan
0211141c08
Simplify render calls for changesets
2019-06-26 14:25:34 +02:00
Andy Allan
3914050fcc
Simplify partial rendering when the partial is named after the model
2019-06-26 14:13:09 +02:00
Andy Allan
c24b0e9399
Rework to ensure views are named after the controller method name
2019-06-26 13:45:40 +02:00
Andy Allan
23dfc4d3bd
Update note comments to use friendly_date_ago helper
...
Refs #2255
2019-06-19 18:04:08 +02:00
mmd-osm
363155a2a8
Move xml gen. into view for (old) nodes, ways, relations, map
2019-05-07 22:16:22 +02:00
Frederik Ramm
17e6e69c39
Move generation of gpx_file XML from model to builder
2019-04-14 16:25:14 +01:00
Andy Allan
e66c719294
Resourceful(ish) naming for api/users_controller
2019-04-10 17:06:15 +02:00
Tom Hughes
79bda7a8ed
Format closed_at correctly in changeset API responses
...
Fixes #2195
2019-03-30 15:40:08 +00:00
Tom Hughes
e3ed9988ce
Merge remote-tracking branch 'upstream/pull/2177'
2019-03-16 15:39:03 +00:00
Andy Allan
d98683abfb
Rubocop fix
2019-03-16 15:30:41 +00:00
Andy Allan
656ed0af76
Move changeset builder views to the api namespace
2019-03-16 15:30:41 +00:00
Andy Allan
d102c9aaf4
Move all settings to settings.yml
...
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Andy Allan
b4dbf6233c
Move the notes api methods into a controller in the api namespace
2019-02-28 17:12:28 +01:00
Andy Allan
4b4c5aac2f
Move the user api methods into a separate controller in the api namespace
2019-02-28 17:12:28 +01:00
Andy Allan
8383fd0928
Move the permissions call out of api_controller
2019-02-24 11:00:28 +01:00
Andy Allan
6a4092bc16
Move the capabilities call out of api_controller
2019-02-24 11:00:20 +01:00
Andy Allan
58c101762e
Use a builder view for the capabilities call
...
This is easier to work with than building the XML document by hand
in the controller.
2019-01-09 14:30:18 +01:00
Andy Allan
686fee43bf
Use full list of osm xml root attributes in builder templates
2019-01-09 14:15:39 +01:00
Andy Allan
38e12759ea
Rubocop autofixes.
2016-09-07 11:07:42 +01:00
Tom Hughes
4b3d4782ce
Remove unused file
2014-03-13 16:01:17 +00:00
Enno Brehm
6a09f49e71
Implement API endpoint to query permissions.
2012-05-05 15:28:45 +01:00
Tom Hughes
2e2f212472
Rename views to rails 2 style names.
2009-06-09 20:50:14 +00:00
Xin Zheng
6b23aa550e
added experimental xml template which is not yet used due to performance issues
2008-01-24 18:21:59 +00:00