[openstreetmap/openstreetmap-website] JSON support for /changeset/:id/download (Issue #5970)

Kyℓe Hensel notifications at github.com
Wed Apr 30 11:42:29 UTC 2025


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/5970 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250430/1cd94464/attachment.htm>


More information about the rails-dev mailing list