Uploaded image for project: 'Repository'
  1. Repository
  2. REPO-3579

REST API: Include target node with the Shared Link info

    Details

    • Work Funnel:
      Feature
    • Sprint:
      Repo 50 - Little Mermaid, Repo 51 Mulan
    • Story Points:
      13
    • Work Funnel End:
      2019-03

      Description

      As a developer working with the Shared Files API I would like more information so that I can develop functionality when a user is logged into ACS.

      https://api-explorer.alfresco.com/api-explorer/#!/shared-links/listSharedLinks

      We need the ability to include=properties,isFavorite

      • isFavorite : true / false - if the shared file is a favorite for the user
      • properties to show at least the following:
        "properties":{
                "cm:lockType":"WRITE_LOCK",
        	"cm:title":"Screenshot reporter",
        	"cm:lockOwner":{
        	        "id":"admin.adf@alfresco.com",
        		"displayName":"Administrator"
        	},
        	"cm:versionType":"MAJOR",
        	"cm:versionLabel":"1.0",
        	"cm:lockLifetime":"PERSISTENT",
        	"cm:lastThumbnailModification":["doclib:1549351708998"]
        }
        

      When retrieving a list of Shared Links, it is very resource-costly to fetch and display the states of the underlying (target) nodes in the UI. For example "Favorite" state - developer has to walk through each node and make an extra HTTP call to get "node info" for the given target "nodeId".

      It should be possible to include the target node when retrieving the list of shared links (https://api-explorer.alfresco.com/api-explorer/#!/shared-links/listSharedLinks). Having an extra "include" field would be very convenient.

      Acceptance Criteria

      • API implementation has been updated
      • Automated tests (junit + TAS) have been updated to test for the added support
      • The OpenAPI spec has been updated

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  dvuika Denys Vuika
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel