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

C_Items

Natasa Bulatovic edited this page Feb 2, 2016 · 11 revisions

Items

##Path /items

#v1 ##Formats Below an example of an item representation in JSON format

 {  
"id":"MzNF1E5iJogKnG99",
"createdBy":{  
    "fullname":"Shi, Allen",
    "userId":"VVP5wGtYQMzvQUQ3"
},
"modifiedBy":{  
    "fullname":"Shi, Allen",
    "userId":"VVP5wGtYQMzvQUQ3"
},
"createdDate":"2015-06-23T11:16:04 +0200",
"modifiedDate":"2015-06-23T11:16:04 +0200",
"versionDate":"",
"status":"RELEASED",
"version":0,
"discardComment":"",
"visibility":"PUBLIC",
"collectionId":"DCQVKA8esikfRTWi",
"filename":"20150623_111553.wav",
"mimetype":"audio/x-wav",
"checksumMd5":"0d67ea9c14806b2b0dc0fadd0ec831f3",
"webResolutionUrlUrl":"https://dev-faces.mpdl.mpg.de/file/DCQVKA8esikfRTWi/91/0e/f6/38-d071-42d9-a100-ee933c93393b/0/web/eb35833b12507d068708b71d4ec66b40.jpg",
"thumbnailUrl":"https://dev-faces.mpdl.mpg.de/file/DCQVKA8esikfRTWi/91/0e/f6/38-d071-42d9-a100-ee933c93393b/0/thumbnail/eb35833b12507d068708b71d4ec66b40.jpg",
"fileUrl":"https://dev-faces.mpdl.mpg.de/file/DCQVKA8esikfRTWi/91/0e/f6/38-d071-42d9-a100-ee933c93393b/0/original/eb35833b12507d068708b71d4ec66b40.wav",
"fileSize":132652,
/* Metadata in key:value pair form - default format */
"metadata":{  
    "tags":"test",
    "author":"Allen",
    "title":"Amalienstraße 33-37, 80799 München, Germany",
    "location":{  
        "name":"Amalienstraße 33-37, 80799 München, Germany",
        "longitude":11.5768219,
        "latitude":48.1480312
    },
    "deviceID":"1",
    "accuracy":21.21299934387207
}
 }

##GET /items/

  • Retrieves a list of items created by the user or shared explicitly with the user.
  • Method description
  • Status: Implemented

##GET /items/:id

##POST /items

  • Creates a new item
  • Method description
  • Status: Implemented (metadata supported, file upload, fetch or reference from external URL supported)

##PUT /items/:id

  • Updates an existing item
  • Method description
  • Status: Implemented (metadata supported, file upload, fetch or reference from external URL supported)

##DELETE /items/:id

Clone this wiki locally