k-yle created an issue (openstreetmap/openstreetmap-website#5970)
### Problem
- **As a** developer of web-based tools,
- **I want** to avoid bundling a massive xml-parsing library just for a single
API endpoint (since almost all others support JSON now)
- **so that** the page loads faster, we avoid unnecessary library, avoid
boilerplate code, etc. etc.
### Description
Over the years, JSON support has gradually been added to most APIs.
Uploading & downloading changesets are one of the few APIs that are still
XML-only.
- https://github.com/zerebubuth/openstreetmap-cgimap/pull/407 tracks uploading
changesets as JSON
- In this issue tracks downloading changesets in JSON
I imagine we could just create `/changeset/:id/download.json` to match
`/changeset/:id/download`. The JSON format would be the same as what
https://github.com/zerebubuth/openstreetmap-cgimap/pull/407 is proposing[^1]
[^1]: specially, a single array with `"action": "create" | "modify" | "delete"`
instead of the 3 arrays for `create`, `modify`, `delete` which is more similar
to the current XML format.
### Screenshots
_No response_
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/5970
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/5...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev