-
Notifications
You must be signed in to change notification settings - Fork 15
Items: Get item shares
##GET /items/:id/shares
Retrieves information about the shares of the item with provided :id
###Supported actions A user can provide a share for an item for following actions:
- READ- retrieve the items no matter the status and the visibility of the item
####Response status codes #####200 OK Successful retrieval of the item shares with provided item :id
#####404 Not found The item with provided :id is not found (does not exist)
#####401 Unauthorized Authentication is necessary to retrieve the item shares
#####403 Forbidden Wrong credentials provided to retrieve this item shares
####Example request curl http:///items/FKMxUpYdV9N2J4XG/shares
####Example response
{
"id":"FKMxUpYdV9N2J4XG",
"shares":[
{
"id":"FKMxUpYdV9N2J4XG11",
"action":"READ",
"createdDate":"2014-10-09T13:01:49 +0200",
"validUntil":"",
"createdBy":{
"fullname":"White, John",
"userId":"zhcQKsMR0A9SiC6x"
},
"assignedTo":{
"fullname":"Black, John",
"userId":"zhcQKsMR0A9SiC6x"
}
},
{
"id":"FKMxUpYdV9N2J4XG12",
"action":"READ",
"createdDate":"2014-10-10T13:01:49 +0200",
"validUntil":"",
"createdBy":{
"fullname":"White, John",
"userId":"zhcQKsMR0A9SiC6x"
},
"assignedTo":{
"fullname":"Black, John",
"userId":"zhcQKsMR0A9SiC6x"
}
},
]
}