NodeResource Resource

Resource for handling Nodes in GCN

POST /node/create

Create a new node. See NodeResourceImpl#checkCreateRequest for a detailed list of constraints on the given request. In short:

  • the node and hostname must be provided
  • no other node with the same hostname and (binary) publish directory may exist
  • if the Aloha editor is to be used, utf8 must be enabled

Request Body
media type data type description
application/json NodeSaveRequest (JSON) The request containing a REST model of the node to be created.
Response Body
media type data type description
application/json NodeLoadResponse (JSON) A node load response containing the values of the newly created node on success, or a response code indicating any errors on failure.

Example

Request
POST /node/create
Content-Type: application/json
Accept: application/json

                
{
  "node" : {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "utf8" : true,
    "publishFs" : true,
    "publishFsPages" : true,
    "publishFsFiles" : true,
    "publishContentMap" : true,
    "publishContentMapPages" : true,
    "publishContentMapFiles" : true,
    "publishContentMapFolders" : true,
    "contentRepositoryId" : 12345,
    "disablePublish" : true,
    "editorVersion" : 12345,
    "contentEditor" : "LiveEditor",
    "defaultFileFolderId" : 12345,
    "defaultImageFolderId" : 12345,
    "languagesId" : [ 12345, 12345 ],
    "masterId" : 12345,
    "inheritedFromId" : 12345,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "meshProject" : "...",
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "creator" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "cdate" : 12345,
    "editor" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "edate" : 12345,
    "type" : "node",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  },
  "description" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "node" : {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "utf8" : true,
    "publishFs" : true,
    "publishFsPages" : true,
    "publishFsFiles" : true,
    "publishContentMap" : true,
    "publishContentMapPages" : true,
    "publishContentMapFiles" : true,
    "publishContentMapFolders" : true,
    "contentRepositoryId" : 12345,
    "disablePublish" : true,
    "editorVersion" : 12345,
    "contentEditor" : "AlohaEditor",
    "defaultFileFolderId" : 12345,
    "defaultImageFolderId" : 12345,
    "languagesId" : [ 12345, 12345 ],
    "masterId" : 12345,
    "inheritedFromId" : 12345,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "meshProject" : "...",
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "creator" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "cdate" : 12345,
    "editor" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "edate" : 12345,
    "type" : "file",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "INVALIDDATA",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /node/save/{id}

Saves the values specified in the request to the node. See NodeResourceImpl#checkRequestConsistency for a detailed list of constraints on the request. In short:

  • any folder id that is given must be valid
  • no other node with the same hostname and (binary) publish directory may exist
  • if the Aloha editor is to be used, utf8 must be enabled

Request Parameters
name type description
id path
Request Body
media type data type description
application/json NodeSaveRequest (JSON) The request containing the fields to be updated in the node.
Response Body
media type data type description
application/json GenericResponse (JSON) A generic response indicating the success or failure of the operation.

Example

Request
POST /node/save/{id}
Content-Type: application/json
Accept: application/json

                
{
  "node" : {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "utf8" : true,
    "publishFs" : true,
    "publishFsPages" : true,
    "publishFsFiles" : true,
    "publishContentMap" : true,
    "publishContentMapPages" : true,
    "publishContentMapFiles" : true,
    "publishContentMapFolders" : true,
    "contentRepositoryId" : 12345,
    "disablePublish" : true,
    "editorVersion" : 12345,
    "contentEditor" : "LiveEditor",
    "defaultFileFolderId" : 12345,
    "defaultImageFolderId" : 12345,
    "languagesId" : [ 12345, 12345 ],
    "masterId" : 12345,
    "inheritedFromId" : 12345,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "meshProject" : "...",
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "creator" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "cdate" : 12345,
    "editor" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "edate" : 12345,
    "type" : "folder",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  },
  "description" : "..."
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "INVALIDDATA",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /node/load/{id}

Load a single node

Request Parameters
name type description default constraints
id path id of the node to load. This can be either the localid or a globalid    
update query true when the folder is fetched for updating. Currently, nodes cannot be locked in the backend, but it is still recommended to set this parameter to true when the node shall be modified. false boolean
Response Body
media type data type description
application/json NodeLoadResponse (JSON) response containing the node to load

Example

Request
GET /node/load/{id}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "node" : {
    "folderId" : 12345,
    "publishDir" : "...",
    "binaryPublishDir" : "...",
    "pubDirSegment" : true,
    "https" : true,
    "host" : "...",
    "utf8" : true,
    "publishFs" : true,
    "publishFsPages" : true,
    "publishFsFiles" : true,
    "publishContentMap" : true,
    "publishContentMapPages" : true,
    "publishContentMapFiles" : true,
    "publishContentMapFolders" : true,
    "contentRepositoryId" : 12345,
    "disablePublish" : true,
    "editorVersion" : 12345,
    "contentEditor" : "LiveEditor",
    "defaultFileFolderId" : 12345,
    "defaultImageFolderId" : 12345,
    "languagesId" : [ 12345, 12345 ],
    "masterId" : 12345,
    "inheritedFromId" : 12345,
    "masterNodeId" : 12345,
    "urlRenderWayPages" : 12345,
    "urlRenderWayFiles" : 12345,
    "meshPreviewUrl" : "...",
    "meshProject" : "...",
    "id" : 12345,
    "globalId" : "...",
    "name" : "...",
    "creator" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "cdate" : 12345,
    "editor" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "edate" : 12345,
    "type" : "image",
    "deleted" : {
      "at" : 12345,
      "by" : { }
    },
    "masterDeleted" : {
      "at" : 12345,
      "by" : { }
    },
    "folderDeleted" : {
      "at" : 12345,
      "by" : { }
    }
  },
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "FAILURE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /node/getLanguages/{id}

Get the ordered list of languages of the node

Request Parameters
name type description
id path node id
Response Body
media type data type description
application/json LanguageListResponse (JSON) ordered list of languages

Example

Request
GET /node/getLanguages/{id}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "languages" : [ {
    "id" : 12345,
    "code" : "...",
    "name" : "..."
  }, {
    "id" : 12345,
    "code" : "...",
    "name" : "..."
  } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "PERMISSION",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /node/features/{id}

Load the activated features

Request Parameters
name type description
id path id of the node
Response Body
media type data type description
application/json NodeFeatureResponse (JSON) response containing the activated features

Example

Request
GET /node/features/{id}
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "features" : [ "disable_instant_delete", "contentfile_auto_offline" ],
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "OK",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /node/features/activate/{id}

Activate the given list of features (features not listed will not be changed)

Request Parameters
name type description
id path id of the node. This can be either the localid or the globalid
Request Body
media type data type
application/json NodeFeatureRequest (JSON)
Response Body
media type data type description
application/json GenericResponse (JSON) generic response

Example

Request
POST /node/features/activate/{id}
Content-Type: application/json
Accept: application/json

                
{
  "features" : [ "disable_instant_delete", "contentfile_auto_offline" ]
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /node/features/deactivate/{id}

Deactivate the given list of features (features not listed will not be changed)

Request Parameters
name type description
id path id of the node. This can be either the localid or the globalid
Request Body
media type data type
application/json NodeFeatureRequest (JSON)
Response Body
media type data type description
application/json GenericResponse (JSON) generic response

Example

Request
POST /node/features/deactivate/{id}
Content-Type: application/json
Accept: application/json

                
{
  "features" : [ "disable_instant_delete", "contentfile_auto_offline" ]
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "FAILURE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

POST /node/features/set/{id}

Set the given list of features. Exactly the listed features will be activated, all other will be deactivated

Request Parameters
name type description
id path id of the node. This can be either the localid or the globalid
Request Body
media type data type
application/json NodeFeatureRequest (JSON)
Response Body
media type data type description
application/json GenericResponse (JSON) generic response

Example

Request
POST /node/features/set/{id}
Content-Type: application/json
Accept: application/json

                
{
  "features" : [ "publish_folder_startpage", "contentfile_auto_offline" ]
}
                
              
Response
HTTP/1.1 201 Created
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "FAILURE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /node/{nodeId}/templates

Get the templates assigned to this node

Request Parameters
name type description default constraints
nodeId path Node ID (local or global)    
page query Returned page, if paging is used. Paging starts with 1 1 int
pageSize query Page size for paging. If this is set to -1 no paging is used (all matching items are returned). Setting this to 0 will return no items. -1 int
q query Query string for filtering    
sort query Comma separated list of sorted attributes. Each attribute name may be prefixed with + for sorting in ascending order or - for sorting in descending order name  
Response Body
media type data type description
application/json PagedTemplateListResponse (JSON) Response containing the templates assigned to this node

Example

Request
GET /node/{nodeId}/templates
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTLICENSED",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /node/{nodeId}/templates/{templateId}

Add a template to a node. This will just assign the template to the node, but not link it to any folders.

Request Parameters
name type description
nodeId path Node ID (local or global)
templateId path Template ID (local or global)
Response Body
media type data type description
application/json GenericResponse (JSON) Generic response

Example

Request
PUT /node/{nodeId}/templates/{templateId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "INFO",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTFOUND",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

DELETE /node/{nodeId}/templates/{templateId}

Remove a template from a node. This will also unlink the template from all folders of the node

Request Parameters
name type description
nodeId path Node ID (local or global)
templateId path Template ID (local or global)
Response Body
media type data type description
application/json GenericResponse (JSON) Generic response

Example

Request
DELETE /node/{nodeId}/templates/{templateId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "MAINTENANCEMODE",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

GET /node/{nodeId}/constructs

Get the constructs assigned to this node

Request Parameters
name type description default constraints
nodeId path Node ID (local or global)    
page query Returned page, if paging is used. Paging starts with 1 1 int
pageSize query Page size for paging. If this is set to -1 no paging is used (all matching items are returned). Setting this to 0 will return no items. -1 int
q query Query string for filtering    
sort query Comma separated list of sorted attributes. Each attribute name may be prefixed with + for sorting in ascending order or - for sorting in descending order name  
Response Body
media type data type description
application/json PagedConstructListResponse (JSON) Response containing the constructs assigned to this node

Example

Request
GET /node/{nodeId}/constructs
Accept: application/json

              
Response
HTTP/1.1 200 OK
Content-Type: application/json

                
{
  "items" : [ { }, { } ],
  "hasMoreItems" : true,
  "numItems" : 12345,
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "CRITICAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "INVALIDDATA",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

PUT /node/{nodeId}/constructs/{constructId}

Add a construct to a node.

Request Parameters
name type description
constructId path Construct ID (local or global)
nodeId path Node ID (local or global)
Response Body
media type data type description
application/json GenericResponse (JSON) Generic response

Example

Request
PUT /node/{nodeId}/constructs/{constructId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "WARNING",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "NOTFOUND",
    "responseMessage" : "...",
    "property" : "..."
  }
}
                
              

DELETE /node/{nodeId}/constructs/{constructId}

Remove a construct from a node.

Request Parameters
name type description
constructId path Construct ID (local or global)
nodeId path Node ID (local or global)
Response Body
media type data type description
application/json GenericResponse (JSON) Generic response

Example

Request
DELETE /node/{nodeId}/constructs/{constructId}
Accept: application/json

              
Response
HTTP/1.1 204 No Content
Content-Type: application/json

                
{
  "messages" : [ {
    "fieldName" : "...",
    "message" : "...",
    "type" : "SUCCESS",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  }, {
    "fieldName" : "...",
    "message" : "...",
    "type" : "NEUTRAL",
    "timestamp" : 12345,
    "image" : "...",
    "sender" : {
      "id" : 12345,
      "firstName" : "...",
      "lastName" : "...",
      "description" : "...",
      "email" : "...",
      "groups" : [ { }, { } ],
      "login" : "...",
      "password" : "..."
    },
    "id" : 12345
  } ],
  "responseInfo" : {
    "responseCode" : "OK",
    "responseMessage" : "...",
    "property" : "..."
  }
}