HTTP GET /people/-me-/favorites
{
'list' : {
'pagination' : {
'count' : 3,
'hasMoreItems' : false,
'totalItems' : 3,
'skipCount' : 0,
'maxItems' : 100
},
'entries' : [ {
'entry' : {
'targetGuid' : '1e365051-34af-4379-8a86-0b9bddc4ca9b',
'target' : {
'file' : {
'name' : 'Beach.jpg',
'title' : 'My Favorite Beach',
'guid' : '1e365051-34af-4379-8a86-0b9bddc4ca9b',
'createdAt' : '2013-01-15T23:17:30.636+0000',
'modifiedAt' : '2013-01-15T23:20:40.841+0000',
'createdBy' : 'greg.melahn@alfresco.com',
'modifiedBy' : 'greg.melahn@alfresco.com',
'mimeType' : 'image/jpeg',
'sizeInBytes' : 12205,
'versionLabel' : '1.2',
'id' : '1e365051-34af-4379-8a86-0b9bddc4ca9b'
}
}
}
}, {
'entry' : {
'targetGuid' : '690745a5-094a-4a97-bf40-434f9751c2c9',
'target' : {
'folder' : {
'name' : 'Attachments',
'guid' : '690745a5-094a-4a97-bf40-434f9751c2c9',
'createdAt' : '2013-01-21T23:45:56.933+0000',
'modifiedAt' : '2013-01-21T23:45:56.933+0000',
'createdBy' : 'greg.melahn@alfresco.com',
'modifiedBy' : 'greg.melahn@alfresco.com',
'id' : '690745a5-094a-4a97-bf40-434f9751c2c9'
}
}
}
}, {
'entry' : {
'createdAt' : '2013-04-09T21:22:21.767+0000',
'targetGuid' : 'df40f96c-c874-4540-a7f2-8b1a58b14832',
'target' : {
'site' : {
'id' : 'pie',
'guid' : 'df40f96c-c874-4540-a7f2-8b1a58b14832',
'title' : 'PIE',
'description' : 'PIE team',
'visibility' : 'PUBLIC',
'role' : 'SiteManager'
}
}
}
}
]
}
function saveFavorites(favReq) {
var myFavorites = JSON.parse(favReq.responseText);
$.each(myFavorites.list.entries, function(index, value) {
favorites.push(value.entry.target.site.id);
}
);
}
HTTP POST /people/-me-/favorites
{
'target': {
'site' : {
'guid' : '8ac18731-601b-4bb4-be1a-cd5d252cce3f'
}
}
}
{
'entry' : {
'targetGuid' : '8ac18731-601b-4bb4-be1a-cd5d252cce3f',
'createdAt' : '2012-07-20T21:46:09.659+0000',
'target': {
'site' : {
'id' : 'foo',
'guid' : '8ac18731-601b-4bb4-be1a-cd5d252cce3f',
'title' : 'A Few of My Favorite Things',
'visibility' : 'PRIVATE',
'description' : 'The Favorite Site',
'role' : 'SiteManager”
}
}
}
}
HTTP DELETE /people/-me-/favorites/8ac18731-601b-4bb4-be1a-cd5d252cce3f
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.