Details

      Description

      As a developer using the REST API I want to retrieve information about a node in the repository so that I can build a client that shows metadata about the file or folder.

      Acceptance Criteria

      • Does the /nodes/nodeId URL return a 200 status code and full representation of the node (see below) if successful?
      • Does the /nodes/nodeId URL return a 404 response if the nodeId path parameter does not exist?
      • Does the /nodes/-root- URL return information about the "Company Home" folder?
      • Does the /nodes/-my- URL return information about the users home folder on-premise?
      • Does the /nodes/-my- URL return information about the users document library folder from their private site on the Cloud?
      • Does the /nodes/-shared- URL return information about the shared folder on-premise?
      • Does the /nodes/-shared- URL return a 404 status code on the Cloud?
      • Can the select query parameter be used to return additional info in the response (eg. path) ?
      • Is the path.isComplete property set to false if the current user does not have access to the whole path? (note: see also ACE-5057 / MNT-15516)
      • Do not return aspect/properties in the "sys" namespace?

      Example Response

      Content-Type: application/json
      
      {
         "createdAt": "2015-11-19T11:08:42.004+0000", 
         "createdByUser": {
            "displayName": "Joe Bloggs", 
            "id": "jbloggs"
         }, 
         "id": "99532d84-d540-410c-b52a-c2131cf33589", 
         "isFolder": false, 
         "isContent": true, 
         "modifiedAt": "2015-11-19T11:08:42.004+0000", 
         "modifiedByUser": {
            "displayName": "Joe Bloggs", 
            "id": "jbloggs"
         }, 
         "name": "test.txt", 
         "nodeType": "cm:content", 
         "parentId": "9afcc003-3911-4f75-a974-a163cc43c986",
         "content": {
            "encoding": "UTF-8", 
            "mimeType": "plain/text", 
            "sizeInBytes": 32
         },
         "properties": {
            "cm:title": "Title"
         },
         "path": {
            "name": "/Company Home",
            "isComplete": true
            "elements": [
               {
                  "id": "f17596e4-3027-4f2b-bd63-15ca147f31ec",
                  "name": "Company Home"
               }
            ]
         }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gcornwell Gavin Cornwell
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: