-
Notifications
You must be signed in to change notification settings - Fork 15
Collections: Get collection versions
##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://localhost:8080/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"
}
}
]
}