[openstreetmap/openstreetmap-website] Add an API endpoint to get notes of a specific user (#1954)
notifications at github.com
Sat Aug 25 17:20:47 UTC 2018
This PR adds an additional endpoint to the Map 🗺 Notes 📝 API which allows to get all notes created by a specific user 👨 (either by the `id` of the user of its `display_name`). It can be accessed at `/api/0.6/notes/user` and takes the same parameters as e.g. the search 🔍 endpoint (`limit`, `closed`). The data can also of course be returned as `.xml`, `.json`, `.rss` or `.gpx`.
This PR would fix #1194 and it is at least a step towards #832...
Originally I planned to add the query parameter to this endpoint too (`?q=*`) but I had some problems ❓ doing this: each time I tested it with a word which was contained in 3 of 5 notes it resulted in 0 results... This is because I commented it out 😞... Maybe somebody else knows why this does not work 😃
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Add an API endpoint to get notes of a specific user
-- File Changes --
M app/controllers/notes_controller.rb (41)
M config/routes.rb (1)
-- Patch Links --
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev