Skip to content

JSON support for /changeset/:id/download #5970

@k-yle

Description

@k-yle

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.

I imagine we could just create /changeset/:id/download.json to match /changeset/:id/download. The JSON format would be the same as what zerebubuth/openstreetmap-cgimap#407 is proposing1

Screenshots

No response

Footnotes

  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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions