Skip to main content

Connections and Repository Calls

GET CONNECTIONS

GET /api/repo/connections

Description:

  • Returns an object containing content service connection info:

Returns:

{
"results": [
{
"id": "spo",
"description": "SPREST",
"connectorId": "spo",
"typeId": "sharePointOnlineContentServiceConnector"
},
{
"id": "box",
"description": "Box",
"connectorId": "box",
"typeId": "simflofyBoxContentServicesConnector"
},
{
"id": "fn",
"description": "FileNet",
"connectorId": "fn",
"typeId": "simflofyFileNetContentServicesConnector"
},
{
"id": "cmis",
"description": "CMIS",
"connectorId": "cmis",
"typeId": "cmisContentServiceConnector"
}
],
"success": true
}

With CURL

curl -u admin:admin -X GET "localhost:8081/simflofy-admin/api/repo/connections" | json_pp

GET REPOSITORY INFO

GET /api/repo/<connectorid>/repositoryInfo

Description:

  • Returns a JSON Object listing the repository capabilities (supported methods)

Path Parameters:

connectorid :The connector id of your content service connector

Returns:

{
"success": true,
"results": {
"capabilities": {
"deleteFolder": true,
"createFileFromItem": true,
"getObjectIDByPath": true,
"listFolderItems": true,
"getContent": false,
"createRelationship": false,
"createFile": true,
"getRelationships": false,
"listVersions": false,
"updateFile": true,
"checkIn": true,
"deleteObjectByID": true,
"updateProperties": true,
"getRootFolderId": true,
"getEditProperties": true,
"getLibrariesForSite": true,
"getObjectProperties": true,
"getSubSites": true,
"getAllSites": true,
"createFolder": true,
"getTypes": true,
"getFileItem": true,
"checkOut": true,
"getFileContent": true
},
"repositoryId": "box",
"repositoryDescription": "MyBox",
"rootFolderId": "0",
"repositoryName": "Box",
"params": {}
}
}

With CURL

curl -u admin:admin -X GET "localhost:8081/simflofy-admin/api/repo/box/repositoryInfo" | json_pp

GET ROOT FOLDER INFO

GET /api/repo/<connectorid>/rootfolderid

Description:

  • Returns an object containing information on the root folder of the repository.

Path Parameters:

connectorid : The connector id of your content service connector

Returns:

{
"results": {
"folderId": "0",
"folderName": "All Files",
"folderPath": "/All Files"
},
"success": true
}

With CURL

curl -u admin:admin -X GET "localhost:8081/simflofy-admin/api/repo/box/rootfolderid" | json_pp

GET REPOSITORY TYPES

GET /api/repo/<connectorid>/types

Description:

  • Returns a JSON Object listing the repository object types.

Path Parameters:

connectorid: The connector id of your content service connector

Returns:

{
"results": {
"D:imap:imapBody": "imap:imapBody",
"D:surf:amdpage": "surf:amdpage",
"D:trx:transferLock": "trx:transferLock",
"D:lnk:link": "lnk:link",
"D:cm:thumbnail": "cm:thumbnail",
"D:rma:nonElectronicDocument": "rma:nonElectronicDocument",
"D:cm:dictionaryModel": "cm:dictionaryModel",
"D:imap:imapAttach": "imap:imapAttach",
"D:ia:updateEvent": "ia:updateEvent",
"D:rma:emailConfig": "rma:emailConfig",
"D:rma:caveatConfig": "rma:caveatConfig",
"D:ia:calendarEvent": "ia:calendarEvent",
"D:trx:transferReport": "trx:transferReport",
"D:bpm:workflowDefinition": "bpm:workflowDefinition",
"D:smf:smartFolderTemplate": "smf:smartFolderTemplate",
"D:ia:ignoreEvent": "ia:ignoreEvent",
"D:cmiscustom:document": "cmiscustom:document",
"D:trx:tempTransferStore": "trx:tempTransferStore",
"D:srft:facetField": "srft:facetField",
"D:fm:post": "fm:post",
"D:bpm:task": "bpm:task",
"D:trx:transferRecord": "trx:transferRecord",
"D:download:download": "download:download",
"D:dl:dataListItem": "dl:dataListItem",
"D:trx:transferReportDest": "trx:transferReportDest",
"D:cm:savedquery": "cm:savedquery",
"D:rmr:report": "rmr:report"
},
"success": true
}

With CURL

curl -u admin:admin -X GET "localhost:8081/simflofy-admin/api/repo/cmis/types" | json_pp