Anton Khorev
a6e614e44e
Declare api node relations as nested resources
2025-02-08 18:22:55 +03:00
Anton Khorev
6a50a5e871
Declare api node ways as nested resources
2025-02-08 18:22:55 +03:00
Anton Khorev
04c6d38649
Map 'full' to api relation show action
2025-02-05 21:07:19 +03:00
Anton Khorev
0f2aa939d4
Map 'full' to api way show action
2025-02-05 21:07:19 +03:00
Anton Khorev
18f65b78eb
Make api show/update/destroy relation actions resourceful
2025-02-05 20:22:16 +03:00
Anton Khorev
35fc840b41
Make api show/update/destroy way actions resourceful
2025-02-05 20:22:16 +03:00
Anton Khorev
3b0be171b9
Make api show/update/destroy node actions resourceful
2025-02-05 20:22:16 +03:00
Tom Hughes
f8ad4c79a4
Merge remote-tracking branch 'upstream/pull/5586'
2025-02-02 10:30:04 +00:00
Tom Hughes
22761a9d1f
Merge remote-tracking branch 'upstream/pull/5585'
2025-02-02 10:16:43 +00:00
Anton Khorev
83167c368e
Use flat_map to collect way node ids in maps controller
2025-02-01 20:36:07 +03:00
Anton Khorev
b9f1e31122
Use filter instead of loop in visible node/way collections
2025-02-01 20:19:00 +03:00
Anton Khorev
560146d88c
Remove ids collected in parallel to model instances in map api
2025-02-01 20:09:38 +03:00
Anton Khorev
8508c4f0a7
Remove unused visible_nodes hashes from api element controllers
2025-02-01 19:35:46 +03:00
Tom Hughes
49e257200e
Merge remote-tracking branch 'upstream/pull/5545'
2025-01-24 15:10:03 +00:00
Anton Khorev
01b5ed5d28
Create api map resource
2025-01-24 10:47:58 +03:00
Anton Khorev
47d55a2b0f
Simplify write_notes scope check in api notes controller
2025-01-24 06:16:11 +03:00
Andy Allan
f32aea6d14
Merge pull request #5433 from AntonKhorev/user-routes-api-namespace
...
Resourceful routes for users api
2025-01-15 12:55:41 +00:00
Anton Khorev
880032ed85
Create user traces resource in api namespace
2024-12-27 05:44:09 +03:00
Anton Khorev
5dbf32d945
Remove check_api_readable from api messages controller
2024-12-23 04:10:05 +03:00
Anton Khorev
45c90003c6
Use resourceful routes for api messages in/outbox
2024-12-22 07:03:41 +03:00
Anton Khorev
3adb697385
Use resourceful routes for api trace data
2024-12-10 14:21:21 +03:00
Anton Khorev
725f6d847f
Remove logger.debug from relation update action
2024-12-06 14:27:46 +03:00
Anton Khorev
53a33110f0
Add destroy note subscription api endpoint
2024-11-20 20:35:24 +03:00
Anton Khorev
edd12c6995
Add create note subscription api endpoint
2024-11-20 20:34:52 +03:00
Anton Khorev
2347906725
Send notifications to note subscribers instead of commenters
2024-11-08 11:40:55 +03:00
Anton Khorev
2d7e0a397a
Subscribe users when they interact with notes
2024-10-28 02:35:25 +03:00
Andy Allan
83425edd8d
Move api error handling and timeouts to parent class
...
Fixes #4861
Since the around_action is defined before authorize_resource is called,
the handler needs to pass on the CanCan::AccessDenied exception.
I've added the timeouts where I think they were missing (e.g. UserPreferencesController)
but I've kept the exception for changeset#upload and traces#create
2024-10-02 16:37:32 +01:00
Tom Hughes
973d62a25e
Drop support for basic authentication
2024-09-02 19:00:57 +01:00
Tom Hughes
17bc0853a0
Drop support for OAuth 1
2024-09-01 03:43:02 +03:00
mmd-osm
5b707ae5ea
Lock note during status update to avoid race condition
2024-08-06 19:51:48 +02:00
Milan Cvetkovic
0db47f3f76
Add Messages API
...
as discussed in [Issue #4509 ](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal )
and documented in [Messaging API reference](https://wiki.openstreetmap.org/w/index.php?title=Messaging_API_proposal )
2024-07-29 10:42:38 +00:00
Andy Allan
c1cccd40fc
Move check_api_readable to api_controller
...
It's easier to skip the check in the two places that we need to, and
include it by default everywhere else.
2024-05-29 14:54:16 +01:00
Andy Allan
f2aaec4735
Standardise on avoiding except lists for check_api_readable
...
Although this is technically duplicative, it's much easier to read
and therefore to maintain, particularly if you put the _readable one
first.
2024-05-29 14:51:47 +01:00
Andy Allan
995bfa91ff
Remove duplicate database status checks
...
These are already done as part of the api checks
2024-05-29 14:51:20 +01:00
Andy Allan
91fc588556
Add api_status checks for user preferences API
2024-05-29 14:51:20 +01:00
Tom Hughes
ca893c1153
Fix new rubocop warnings
2024-05-21 18:21:56 +01:00
Tom Hughes
64af2816a3
Treat the body as UTF-8 for user_preferences#update
2024-05-16 17:51:33 +01:00
Anton Khorev
588b77244b
Rename api OldController to OldElementsController
2024-04-02 16:11:09 +03:00
Tom Hughes
d2688d4d63
Merge remote-tracking branch 'upstream/pull/4639'
2024-04-01 18:37:27 +01:00
Anton Khorev
c2c5892112
Rename api changesets index template
2024-03-30 08:39:29 +03:00
Anton Khorev
765165777e
Rename api changesets index action
2024-03-30 08:26:58 +03:00
Anton Khorev
558c8765f5
Rename api changeset show template
...
Make template name correspond to action name.
2024-03-30 08:10:24 +03:00
Anton Khorev
fba5528731
Remove require "xml/libxml" from controllers
2024-03-28 11:18:31 +03:00
Tom Hughes
f4b8510744
Merge remote-tracking branch 'upstream/pull/4622'
2024-03-26 18:17:05 +00:00
Anton Khorev
604bba10ec
Remove assert_method from api controllers
2024-03-25 07:15:16 +03:00
Anton Khorev
1e9d390c1e
Replace lookup_user_by_id with load_resource
2024-03-25 06:29:46 +03:00
Anton Khorev
9c0d74fe69
Simplify and test downloaded changeset element sorting
2024-03-21 20:02:18 +03:00
Anton Khorev
cbf6b39464
Rename api element version action to show
2024-03-04 11:19:50 +03:00
Tom Hughes
53817fa9e8
Merge remote-tracking branch 'upstream/pull/4251'
2024-02-25 14:06:56 +00:00
Tom Hughes
8e21e4e801
Move mechanics of changeset subscriptions into the model
2024-02-25 09:48:11 +00:00