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

Retrieve Shared Link Information

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: ACS 5.2
    • Component/s: REST API
    • Labels:
      None

      Description

      As a developer using the REST API I want to retrieve information for a (publicly) shared link to content in the repository so that I can build a client that allows the content to be previewed/downloaded by external users.

      Acceptance Criteria

      • The /shared-links/{sharedId} URL accepts a GET request from an unauthenticated user and returns a 200 response with a minimal representation of a shared link
      • The endpoint returns a 404 response if the sharedId in the path parameter does not exist
      • The endpoint returns a 501 (Not Implemented) response if the shared links feature is disabled

      Example Request/Response

      GET /shared-links/KqepIIxIS6yRNlq69fy-NQ
      
      {
         "entry":{
            "name": "516776main_m7flare_1600-1200.jpg",
            "id": "KqepIIxIS6yRNlq69fy-NQ",
            "nodeId": "2a54b587-0c33-4431-bb05-9fe1334366a0",
            "content":{
               "mimeType": "image/jpeg",
               "mimeTypeName": "JPG",
               "sizeInBytes": 261958
            },
           "modifiedAt": "2015-11-19T11:08:42.004+0000", 
           "modifiedByUser": {
              "displayName": "Joe Bloggs"
            },
           "sharedByUser": {
              "displayName": "Fred Smith"
            }
         }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jvonka Jan Vonka
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: