Created
June 3, 2019 10:19
Revisions
-
aborroy created this gist
Jun 3, 2019 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,427 @@ { "info": { "_postman_id": "1a503b3a-0f92-4c6b-bc32-51cbee05616a", "name": "CMIS Browser", "description": "CMIS Broser sample catalog.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Get Repositories Information", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser" ] } }, "response": [] }, { "name": "Get Folder Children", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared" ] } }, "response": [] }, { "name": "Create New Document", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "cmisaction", "value": "createDocument", "type": "text" }, { "key": "propertyId[0]", "value": "cmis:objectTypeId", "type": "text" }, { "key": "propertyValue[0]", "value": "cmis:document", "type": "text" }, { "key": "propertyId[1]", "value": "cmis:name", "type": "text" }, { "key": "propertyValue[1]", "value": "test.txt", "type": "text" }, { "key": "file", "type": "file", "src": "/Users/aborroy/Desktop/CMIS.md" } ] }, "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared" ] } }, "response": [] }, { "name": "Get Document Content", "protocolProfileBehavior": { "disableBodyPruning": true }, "request": { "method": "GET", "header": [], "body": { "mode": "formdata", "formdata": [] }, "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared/test.txt?cmisselector=content", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared", "test.txt" ], "query": [ { "key": "cmisselector", "value": "content" } ] } }, "response": [] }, { "name": "Get Document Properties", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared/test.txt?cmisselector=properties", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared", "test.txt" ], "query": [ { "key": "cmisselector", "value": "properties" } ] } }, "response": [] }, { "name": "Get Document Parent", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared/test.txt?cmisselector=parents", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared", "test.txt" ], "query": [ { "key": "cmisselector", "value": "parents" } ] } }, "response": [] }, { "name": "Get Versions", "request": { "method": "GET", "header": [], "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared/test.txt?cmisselector=versions", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared", "test.txt" ], "query": [ { "key": "cmisselector", "value": "versions" } ] } }, "response": [] }, { "name": "Remove Document", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "cmisaction", "value": "delete", "type": "text" } ] }, "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared/test.txt", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared", "test.txt" ] } }, "response": [] }, { "name": "Create Folder", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "cmisAction", "value": "createFolder", "type": "text" }, { "key": "propertyId[0]", "value": "cmis:objectTypeId", "type": "text" }, { "key": "propertyValue[0]", "value": "cmis:folder", "type": "text" }, { "key": "propertyId[1]", "value": "cmis:name", "type": "text" }, { "key": "propertyValue[1]", "value": "New Folder", "type": "text" } ] }, "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser/root/Shared", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser", "root", "Shared" ] } }, "response": [] }, { "name": "Query", "request": { "method": "POST", "header": [], "body": { "mode": "formdata", "formdata": [ { "key": "cmisaction", "value": "query", "type": "text" }, { "key": "statement", "value": "select * from cmis:document where cmis:name like 'test.txt'", "type": "text" } ] }, "url": { "raw": "http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser", "protocol": "http", "host": [ "localhost" ], "port": "8080", "path": [ "alfresco", "api", "-default-", "public", "cmis", "versions", "1.1", "browser" ] } }, "response": [] } ], "auth": { "type": "basic", "basic": [ { "key": "password", "value": "admin", "type": "string" }, { "key": "username", "value": "admin", "type": "string" } ] } }