[openstreetmap/openstreetmap-website] Add an API endpoint to get the latest notes (#1953)
notifications at github.com
Sat Aug 25 15:06:53 UTC 2018
This PR adds an additional endpoint to the Map Notes API which allows to get the latest notes which are available. It can be accessed at `/api/0.6/notes/latest` and takes the same parameters as e.g. the search endpoint (`limit`, `closed`). The data can be returned as `.xml`, `.json`, `.rss` or `.gpx`.
A possible use case for this endpoint is that applications could request the latest notes and show them on a map/list and users can resolve the notes or ask questions because I think the faster someone comments/resolves a note you created not that long ago the higher is the possibility that the creator of the note wants to answer the question and did not forget what the note was all about.
In the end it might also help to reduce the amount of created notes at all and thus making the map a better map 😄
You can view, comment on, or merge this pull request online at:
-- Commit Summary --
* Add an API endpoint to get the latest notes
-- File Changes --
M app/controllers/notes_controller.rb (18)
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