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

Items: Get item versions

natasab edited this page Dec 23, 2014 · 1 revision

##GET /items/:id/versions *Retrieves information about the history of the item with provided :id

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

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

#####401 Unauthorized Authentication is necessary for this method

#####403 Forbidden Wrong credentials provided to retrieve this item history

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

####Example response {
"id":"FKMxUpYdV9N2J4XG", "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