Compare two versions of a manual
The manual at both versions and the members of its manifest that differ (meta.change, meta.fields), so the review screen’s manual diff renders it. Each side is read as reading its commit needs: a released commit (main’s head, a release tag) with content.read, any other, also an older commit of main, with content.read.draft, else 404 as for a ref that does not exist. Each side shows the manual only as the reader would see it on the other too (its audience, and only the modules a manifest may name to them on both); a side where it is not there is added or removed; 404 when neither has it.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
id*string^[a-z0-9]+(?:-[a-z0-9]+)*$length <= 100base*stringThe older version: a commit ID or a tag.
1 <= length <= 256head*stringThe newer version: a commit ID or a tag.
1 <= length <= 256application/vnd.api+json- response
data*id is <manualId>/<base commit>..<head commit>. Derived from Git, never stored.
curl -X GET 'http://localhost:3000/manuals/operating/compare?base=string&head=string'{ "data": { "type": "ManualComparison", "id": "string", "attributes": { "base": { "schemaVersion": 1, "kind": "derived", "title": "string", "audience": "string", "deprecated": { "reason": "string", "replacedBy": "string" }, "variants": [ { "property1": "string", "property2": "string" } ], "textAttributes": {}, "coverImage": { "default": { "asset": "string", "alt": "string" }, "variants": [] }, "rule": { "source": "string", "moduleTypes": [ "string" ], "exclude": [], "front": [], "back": [], "notices": { "groupBy": "module", "levels": [ "danger" ] } }, "entries": [ { "module": "string", "when": { "op": "all", "of": [ null, null ] } } ] }, "head": { "schemaVersion": 1, "kind": "derived", "title": "string", "audience": "string", "deprecated": { "reason": "string", "replacedBy": "string" }, "variants": [ { "property1": "string", "property2": "string" } ], "textAttributes": {}, "coverImage": { "default": { "asset": "string", "alt": "string" }, "variants": [] }, "rule": { "source": "string", "moduleTypes": [ "string" ], "exclude": [], "front": [], "back": [], "notices": { "groupBy": "module", "levels": [ "danger" ] } }, "entries": [ { "module": "string", "when": { "op": "all", "of": [ null, null ] } } ] } }, "meta": { "base": "string", "head": "string", "change": "added", "fields": [ "string" ], "unreadable": true } }}