openstreetmap-website/app/controllers/api
Andy Allan 1700c23dd1 Prefer find_by() instead of where().first
These are very similar, differing only if we would expect multiple
results and the sorting is important. However, in all our cases
we're only expecting one result to be returned, and so find_by is
easier to read.
2023-10-04 17:53:58 +01:00
..
capabilities_controller.rb Make the capabilities call default to XML 2023-08-13 12:48:02 +01:00
changeset_comments_controller.rb Move changeset comment rate limit check to a predicate method 2023-08-30 18:36:33 +01:00
changesets_controller.rb Avoid using _id in queries 2023-08-30 17:08:16 +01:00
map_controller.rb Check required bbox parameter presence outside of BoundingBox class 2023-09-03 09:47:27 +03:00
nodes_controller.rb Enable the ActionOrder cop for remaining controllers 2022-11-02 11:06:00 +00:00
notes_controller.rb Merge remote-tracking branch 'upstream/pull/4222' 2023-09-03 18:54:18 +01:00
old_controller.rb Check API status before authorizing access 2022-04-11 20:47:52 +01:00
old_nodes_controller.rb Move node/way/relation/old_* controllers into the api namespace 2019-02-28 17:12:28 +01:00
old_relations_controller.rb Move node/way/relation/old_* controllers into the api namespace 2019-02-28 17:12:28 +01:00
old_ways_controller.rb Move node/way/relation/old_* controllers into the api namespace 2019-02-28 17:12:28 +01:00
permissions_controller.rb Check API status before authorizing access 2022-04-11 20:47:52 +01:00
relations_controller.rb Enable the ActionOrder cop for remaining controllers 2022-11-02 11:06:00 +00:00
tracepoints_controller.rb Check required bbox parameter presence outside of BoundingBox class 2023-09-03 09:47:27 +03:00
traces_controller.rb Prefer find_by() instead of where().first 2023-10-04 17:53:58 +01:00
user_blocks_controller.rb Add show user block api endpoint 2023-09-09 15:53:22 +03:00
user_preferences_controller.rb Fix various code comments 2021-07-21 11:24:23 +01:00
users_controller.rb Restore ordering of results from the users#index API call 2023-08-26 17:41:22 +01:00
versions_controller.rb Make the versions call default to XML 2023-08-18 19:26:53 +01:00
ways_controller.rb Enable the ActionOrder cop for remaining controllers 2022-11-02 11:06:00 +00:00