[openstreetmap/openstreetmap-website] JSON output added to changeset(s) endpoints (PR #3495)

mmd notifications at github.com
Sat Mar 12 12:03:58 UTC 2022


Right, I think we already have all three options in place in different parts of the API:

- Option 1: app/views/api/ways/show.json.jbuilder
- Option 2: app/views/api/users/show.json.jbuilder + app/views/api/users/_user.json.jbuilder
- Option 3: app/views/api/notes/show.json.jbuilder

For nodes/ways/relations (single or multiple ones) I deliberately used the same [OSM JSON](https://wiki.openstreetmap.org/wiki/OSM_JSON) format everywhere, to avoid any special case parsers for single objects.

Option 3 for notes follows some GeoJSON format, and seems to be a good fit for that particular use case.

Now for single changesets, I believe either option 1 or 2 would be reasonable.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/3495#issuecomment-1065871311
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/3495/c1065871311 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20220312/25a0f5d7/attachment.htm>


More information about the rails-dev mailing list