[openstreetmap/openstreetmap-website] Add an API endpoint to get the latest notes (#1953)

ENT8R 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:

  https://github.com/openstreetmap/openstreetmap-website/pull/1953

-- 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 --

https://github.com/openstreetmap/openstreetmap-website/pull/1953.patch
https://github.com/openstreetmap/openstreetmap-website/pull/1953.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1953
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180825/d78022cf/attachment.html>


More information about the rails-dev mailing list