OpenFolia

List what a change set changes

GET
/change-sets/{changeSetId}/changes

The modules and manuals that differ between the change set’s base commit and its head (the review head once submitted, else its branch’s head), each with what differs: its metadata fields and, for a module, its blocks by block ID (added, changed, removed; unchanged blocks are not listed). Derived from Git, never stored. Each side is read as the reader may read that commit, and shows only what they would also see on the other: a module or manual they may not see there is not there, exactly like a missing one, and one they see on neither side is neither listed nor counted. Other files (the configuration, templates, images) are not listed. The change set is found as GET /change-sets/{changeSetId} finds it; its author reads its base as released content when it started from released content. Needs the content.read permission.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

changeSetId*string

The change set’s ID (a UUID). One that names no change set, malformed or not, is 404.

Formatuuid

Query Parameters

page[number]?integer

Page to return, from 1. Default: 1.

Range1 <= value
page[size]?integer

Resources per page. Default: 50, at most 200.

Range1 <= value <= 200

Header Parameters

X-Ccms-User?string

Demo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/changes'
Example Response
{  "data": [    {      "type": "ChangeSetChange",      "id": "string",      "attributes": {        "subject": {          "type": "module",          "lang": "string",          "moduleId": "string"        }      },      "relationships": {        "changeSet": {          "data": {            "type": "ChangeSet",            "id": "string"          }        }      },      "meta": {        "change": "added",        "fields": [          "string"        ],        "blocks": [          {            "blockId": "string",            "change": "added"          }        ],        "unreadable": true      }    }  ],  "meta": {    "page": {      "currentPage": -9007199254740991,      "lastPage": -9007199254740991,      "perPage": -9007199254740991,      "total": -9007199254740991    },    "base": "string",    "head": "string"  },  "links": {    "self": "string",    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  }}