Skip to content
This repository has been archived by the owner on Jul 2, 2018. It is now read-only.

Albums: Get a single album

Natasa Bulatovic edited this page Jul 8, 2015 · 2 revisions

##GET /albums/:id *Retrieves an album with this album _:id

####Response status codes #####200 OK Successful retrieval of the album

#####404 Not found The album with provided :id is not found (does not exist)

#####401 Unauthorized Authentication is necessary to retrieve this album

#####403 Forbidden Wrong credentials provided to retrieve this album (e.g. pending album, but a user who is not creator of this album and does not have a share for this album tries to retrieve it)

####Example request curl http://<base-url>/albums/FKMxUpYdV9N2J4XG

#####Example response body

{  
    "id":"i363cu7L22_KNqg_",
    "createdBy":{  
        "fullname":"test",
        "userId":"bdAKsjGTbpj9_GF"
    },
    "modifiedBy":{  
        "fullname":"test",
        "userId":"bdAKsjGTbpj9_GF"
    },
    "createdDate":"2015-06-23T15:40:42 +0200",
    "modifiedDate":"2015-06-23T15:40:58 +0200",
    "versionDate":"",
    "status":"PENDING",
    "version":0,
    "discardComment":"",
    "title":"test album",
    "description":"",
    "contributors":[  
        {  
            "id":"1YZ2Lfe7FthS9ULw",
            "familyName":"yao",
            "givenName":"yan",
            "completeName":"yao, yan",
            "alternativeName":"",
            "role":"",
            "identifiers":[  
                {  
                    "type":"imeji",
                    "value":"zUj_RhwY1qcMlS48"
                }
            ],
            "organizations":[  
                {  
                    "id":"FcrgbsjdxreRU7SL",
                    "name":"MPDL",
                    "description":"",
                    "identifiers":[  
                        {  
                            "type":"imeji",
                            "value":"P2U7Z0oujpCou3US"
                        }
                    ],
                    "city":"München",
                    "country":"Germany"
                }
            ]
        }
    ]
}
Clone this wiki locally