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

Collections: Get collection versions

natasab edited this page Dec 23, 2014 · 2 revisions

##GET /collections/:id/versions *Retrieves information about the history of the collection with provided :id

####Response status codes #####200 OK Successful retrieval of the collection history with provided :id

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

#####401 Unauthorized Authentication is necessary to retrieve this collection history

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

####Example request curl http:///collections/FKMxUpYdV9N2J4XG/versions

####Example response {
"id":"FKMxUpYdV9N2J4XG", "title":"Research Data", "description":"Test for research data", "versions":[
{
"version":1, "date":"2014-10-09T13:01:49 +0200", "comment":"Some first comment", "status":"PENDING", "createdBy":{
"fullname":"White, John", "userId":"zhcQKsMR0A9SiC6x" } }, {
"version":2, "date":"2014-10-10T13:01:52 +0200", "comment":"Some second comment", "status":"PENDING", "createdBy":{
"fullname":"Black, John", "userId":"zhcQKsMR0A9SiC7x" } } ] }

Clone this wiki locally