OpenFolia

List releases

GET
/releases

Releases, newest first, withdrawn ones too (attributes.withdrawal): each a product revision tagged on the whole of main at one commit. Read the content as released with ?ref=<attributes.tag>. Releases are released content, so every reader may list them; what a reader sees at a tag is limited to their scope. Each release’s meta.outputs says where its files stand, as GET /releases/{releaseId} does (but with queue always null: what waits ahead of a release is counted for its own read only), so a list shows them without a read per release. 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.

Query Parameters

filter[product]?string

Only releases of this product (a value of the product facet).

Match^[a-z][a-z0-9-]*$
Lengthlength <= 64
filter[major]?string

true: only major releases; false: only the others. Left out: all.

Value in"true""false"
filter[state]?string

withdrawn: only withdrawn releases; published: only those that stand. Left out: all.

Value in"published""withdrawn"
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

Response Body

application/vnd.api+json
  1. response
data*array<>
meta*
links*
Example Request
curl -X GET 'http://localhost:3000/releases'
Example Response
{  "data": [    {      "type": "Release",      "id": "string",      "attributes": {        "product": "string",        "productFacet": "string",        "revision": "string",        "tag": "string",        "tagObject": "string",        "commit": "string",        "notes": "string",        "notesByLanguage": {          "property1": "string",          "property2": "string"        },        "major": true,        "publishedBy": {          "kind": "user",          "id": "string"        },        "publishedAt": "2019-08-24T14:15:22Z",        "withdrawal": {          "by": {            "kind": "user",            "id": "string"          },          "at": "2019-08-24T14:15:22Z",          "reason": "string"        }      },      "meta": {        "outputs": {          "state": "planning",          "total": 0,          "queued": 0,          "rendering": 0,          "done": 0,          "failed": 0,          "refused": {            "reason": "too-many-outputs",            "wanted": 0,            "max": 0          },          "queue": {            "ahead": 0,            "releases": 0          }        }      }    }  ],  "meta": {    "page": {      "currentPage": -9007199254740991,      "lastPage": -9007199254740991,      "perPage": -9007199254740991,      "total": -9007199254740991    }  },  "links": {    "self": "string",    "first": "string",    "last": "string",    "prev": "string",    "next": "string"  }}