Commit graph

39 commits

Author SHA1 Message Date
Anton Khorev
84c4ed3fa8 Add base old element redactions controller 2025-02-17 03:51:05 +03:00
Tom Hughes
d90f353e5f Merge remote-tracking branch 'upstream/pull/4359' 2025-02-16 09:04:17 +00:00
Anton Khorev
1f59507e78 Add changeset comment search api with filtering by author and time 2025-02-15 19:35:24 +03:00
Anton Khorev
6569ed24e4 Add user block api call 2025-02-15 19:20:09 +03:00
Anton Khorev
6d558003aa Add active blocks list api endpoint with empty response 2025-02-14 14:16:48 +03:00
Anton Khorev
2d46b44872 Add write_changeset_comments scope 2025-02-14 00:17:45 +03:00
Anton Khorev
77a2657d33 Pass scopes instead of token to ApiAbility 2025-02-14 00:15:52 +03:00
Anton Khorev
304e0ef638 Pass user to ApiAbility 2025-02-14 00:15:52 +03:00
Anton Khorev
98af87d1cb Convert api element history actions to versions resources 2025-02-09 19:18:47 +03:00
Anton Khorev
f696b5439e Declare api relation relations as nested resources 2025-02-08 18:22:55 +03:00
Anton Khorev
2a38dca0b7 Declare api way relations as nested resources 2025-02-08 18:22:55 +03:00
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
Anton Khorev
880032ed85 Create user traces resource in api namespace 2024-12-27 05:44:09 +03:00
Anton Khorev
45c90003c6 Use resourceful routes for api messages in/outbox 2024-12-22 07:03:41 +03:00
Anton Khorev
cdce867183 Merge ApiCapability class into ApiAbility 2024-12-20 18:39:08 +03:00
Anton Khorev
b95a8d03e3 Replace show and index abilities with read ability 2024-12-20 05:21:06 +03:00
Anton Khorev
3adb697385 Use resourceful routes for api trace data 2024-12-10 14:21:21 +03:00
Anton Khorev
765165777e Rename api changesets index action 2024-03-30 08:26:58 +03:00
Anton Khorev
511ce4ab89 Collect node/way/relation CanCanCan subjects into arrays 2024-03-14 02:44:25 +03:00
Anton Khorev
cbf6b39464 Rename api element version action to show 2024-03-04 11:19:50 +03:00
Anton Khorev
2d358c9df2 Remove unnecessary api abilities 2024-01-17 02:57:08 +03:00
Tom Hughes
efd2b92a80 Prevent unauthenticated users commenting on notes via the API 2023-11-23 16:56:07 +00:00
Anton Khorev
71654e563e Add show user block api endpoint 2023-09-09 15:53:22 +03:00
Tom Hughes
9cb7a7b36b Don't allow any abilities for inactive users 2022-12-23 16:37:33 +00:00
Andy Allan
f1c6a87aa1
Merge pull request #2427 from mmd-osm/patch/remove_expand_bbox
Remove expand_bbox endpoint
2019-12-04 12:48:34 +01:00
Andy Allan
25ebf87e5a Rename UserPreference controller methods to follow rails conventions more closely 2019-11-20 16:09:48 +01:00
mmd-osm
fc8923c305 Remove expand_bbox endpoint 2019-11-09 21:08:40 +01:00
Andy Allan
15865b5a8d Remove node/way/relation Search API
This API clearly shows its age, having never been fully implemented
and simply returning 100 ways (or 2000 relations) at random matching
the provided tags.

It is, as far as I'm aware, completely unused. While it provides a
good amount of humour to anyone who reads the code, the time as come
for it to be retired.
2019-10-23 11:41:05 +02: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
mmd-osm
b97e8d5427 Remove SWF gpx trackpoints feature for Potlatch1 2019-05-19 15:17:14 +02:00
Andy Allan
e66c719294 Resourceful(ish) naming for api/users_controller 2019-04-10 17:06:15 +02:00
Andy Allan
5444af981c Resourceful route names for api/trace_controller 2019-04-10 16:52:20 +02:00
Andy Allan
7b057545c0 Disentangle the api abilities from the web abilities
This will allow us to rename api actions without causing permissions headaches. The choice of
abilities files is made by inheriting from either api_controller or application_controller.

Also rename capabilities to api_capabilites, for consistency.
2019-03-27 18:07:29 +01:00