-
Notifications
You must be signed in to change notification settings - Fork 1
Resource
Borja Gorriz edited this page Sep 23, 2013
·
3 revisions
Base URL: api/dime/rest/{mainSaId}/resource
| Method | Path | Description |
| GET | @all | Returns a collection of all resources of all users. |
| GET | {personId}/@all | Returns a collection of all resources the user has. |
| POST | @me | Ceates a new resource. |
| GET | @me/{Reid} | Returns a specific resource. |
| POST | @me/{Reid} | Updates a specific resource. |
| DELETE | @me/{Reid} | Deletes a specific resource. |
| GET | @me/@all/shared?sharedWithAgent={agentId} | Returns all the profile attributes shared with a specific agent |
| GET | @me/@all/shared?sharedWithService={serviceId} | Returns all the profile attibutes profile shared with a specific service |
Parameters:
- personId: Id of an specific person. It includes @me.
- Reid: Id of an specific profile.
- agentId: Id of a specific agent.
- serviceId: Id of a specific service.
Examples:
- Call: api/dime/rest/5b223cde-07e5-4987-b531-231876fa7601/resource/@me/@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": "<resourceId>",
"lastModified":1338824999,
"created":1338824999,
"userId": "<userId>|@me",
"name": "FileName.ppt",
"imageUrl": "<imageURl>",
"type": "resource",
"items": [],
"nao:privacyLevel":0.5, //
"downloadUrl": "dspodasdp/FileName.ppt",
"nie:mimeType": "application/vnd.ms-powerpoint",
"originId": "id of device/service the file was coming from",
"originalPath": "path to file on original device/service",
"nfo:fileSize":483840,
"nfo:wordCount": 237,
"nfo:lineCount": integer,
"nfo:pageNumber": integer,
"nfo:fileOwner": "ismriv",
"nao:includes": [
{
"saidSender":"jdaspojsd39023",
"groups": [groupId, ...],
"persons": [
{"personId":"392a",
"saidReceiver":”fweo634ifwo},
...
] ,
"services": ["serviceId",...]
},
{
...
},
],
"nao:excludes": [
]
}
}
}