Fetch detailed information from an existing diff
Fetch the result of a previously created diff with the POST /diffs
API endpoint.
Path parameters
-
UUID of an existing diff from which to fetch diff details
Query parameters
-
formats array[string]
A list of formats to render in the response. Possible values are
text
,markdown
,html
orjson
. If not provided defaults to render bothtext
andmarkdown
formats.
GET /diffs/{id}
curl \
-X GET https://bump.sh/api/v1/diffs/{id}
Response examples (200)
Default response
{
"id": "2361df99-1234-4c80-a0cc-45c9fe565812",
"public_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812",
"breaking": false,
"previous_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/previous.json",
"current_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/current.json",
"text": "Updated: POST /versions\n Response modified: 201\n Body attribute added: doc_id\n",
"markdown": "## Modified (1)\n\n* `POST /user`\n * Path parameters added: `id`, `email`\n * Query parameters added: `period`, `limit`\n"
}
{
"id": "2361df99-1234-4c80-a0cc-45c9fe565812",
"public_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812",
"breaking": false,
"previous_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/previous.json",
"current_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/current.json",
"html": "<ul class=\"changelog-event__diff expandable\" data-expander-target=\"content\">\n <li class=\"changelog-event__diff-operation added\">\n Added: <a href=\"http://localhost:3000/diff/c1e36203-5b04-4adc-b8c5-8ac626ce8592#operation-get-diffs-parameter\"><code class=\"code-inline root\">GET /diffs/{id}</code></a>\n </li>\n</ul>\n"
}
{
"id": "2361df99-1234-4c80-a0cc-45c9fe565812",
"public_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812",
"breaking": false,
"previous_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/previous.json",
"current_version_url": "https://bump.sh/diff/2361df99-3467-4c80-a0cc-45c9fe565812/current.json",
"details": [
{
"id": "post-versions",
"name": "POST /versions",
"status": "added",
"type": "endpoint",
"breaking": false,
"children": []
}
]
}
Response examples (200)
{
"id": "2361df99-1234-4c80-a0cc-45c9fe565812",
"title": "Bump Api",
"public_url": "https://bump.sh/doc/my-own-documentation/change/2361df99-3467-4c80-a0cc-45c9fe565812",
"breaking": false,
"details": [
{
"id": "post-versions",
"name": "POST /versions",
"status": "added",
"type": "endpoint",
"breaking": false,
"children": []
}
],
"previous_version_url": "https://developers.bump.sh/changes/750f15d8-6c41-47b9-8f80-e3ed812dbca9/previous.json",
"current_version_url": "https://developers.bump.sh/changes/750f15d8-6c41-47b9-8f80-e3ed812dbca9/current.json",
"markdown": "## Modified (1)\n\n* `POST /user`\n * Path parameters added: `id`, `email`\n * Query parameters added: `period`, `limit`\n",
"html": "<ul class=\"changelog-event__diff expandable\" data-expander-target=\"content\">\n <li class=\"changelog-event__diff-operation added\">\n Added: <a href=\"http://localhost:3000/diff/c1e36203-5b04-4adc-b8c5-8ac626ce8592#operation-get-diffs-parameter\"><code class=\"code-inline root\">GET /diffs/{id}</code></a>\n </li>\n</ul>\n",
"text": "Updated: POST /versions\n Response modified: 201\n Body attribute added: doc_id\n"
}