Connection

The server side Connection class

structure

Structure

Parameters

paramsCheck

Checks the format of the params

Parameters

Returns

Object
Params

unpublishContent

Unpublishes content

Parameters

project
String
environment
String
content
Content

Returns

Promise
Promise

removePreview

Removes a Content preview

Parameters

project
String
environment
String
content
Content

Returns

Promise
Preview URL

generatePreview

Generates a Content preview

Parameters

project
String
environment
String
content
Content
language
String

Returns

Promise
Preview URL

publishContent

Publishes content

Parameters

project
String
environment
String
content
Content

Returns

Promise
Promise

setContent

Sets a Content node by id

Parameters

id
String
content
Content
language
String

Returns

Promise
Result

removeContent

Removes a Content node by id

Parameters

id
String
language
String

Returns

Promise
Result

getAllTemplates

Gets a list of Templates

Parameters

type
String

Returns

Promise
Templates

getTemplate

Gets a Template by name

Parameters

type
String
name
String

Returns

Promise
Template

setTemplate

Sets a Template by name

Parameters

type
String
name
String
content
String

Returns

Promise
Result

removeTemplate

Removes a Template by name

Parameters

type
String
name
String

Returns

Promise
Result

getAllMedia

Gets a list of Media nodes

Parameters

Returns

Promise
Media

getMedia

Gets a Media node by id

Parameters

id
String

Returns

Promise
Media node

setMedia

Sets a Media node by id

Parameters

id
String
name
String
base64
String

Returns

Promise
Media node

removeMedia

Removes a Media node by id

Parameters

id
String

Returns

Promise
Result