Skip to content
Borja Gorriz edited this page Sep 23, 2013 · 3 revisions

Base URL: api/dime/rest:said/shared

Method Path Description
GET /databox/@all Returns a collection of all the databox shared by the user
GET /databox/{databoxId} Returns a databox shared by the user
GET /livepost/@all Returns a collection of all the livepostshared by the user
GET /livepost/{livepostId} Returns a livepostshared by the user
GET /profile Returns the profile shared through the account said.
GET /resource/@all Returns a collection of all the resource shared by the user
GET /resource/{resourceId} Returns a resource shared by the user

Parameters:

  • databoxId: Id of a specific databox
  • livepostId: Id of a specific livepost
  • resourceId: Id of a specific resource

Examples:

  • Call: /api/dime/rest/5b223cde-07e5-4987-b531-231876fa7601/shared/databox/@all
  • Response:
{
"response":{
      "meta":{
         "v":"0.9",
         "status":"OK",
         "code":200,
         "timeRef":"2011-08-30T15:01:59+02:00",
         "msg": ""
   },
   "data":{
      "startIndex":0,
      "itemsPerPage":2,
      "totalResults":2,
      "entry":[{
         "guid": "<databoxId>",
         "created":1338824999,
         "lastModified":1338824999,
         "userId": "<userId>|@me",
         "name": "Summer 2011",
         "imageUrl": "<imageUrl>",
         "type": "databox",
         "items": [
            "resourceId1",
            "resourceId2",
            "resourceId3"],
         "nao:privacyLevel":0.5,
        "nao:includes": [
                     {
                       "saidSender":"jdaspojsd39023",
                       "groups": [groupId, ...],
                       "persons": [
                          {"personId":"392a", "saidReceiver":”fweo634ifwo”},
                          {...}
                          ] ,
                       "services": ["serviceId",...]
                          },
                          {
                          ...
                          }               
                        ],
          "nao:excludes": [
        
          ]
        }
       ]
     }
}

Clone this wiki locally