AnsweredAssumed Answered

Using new 5.2 REST API "people" endpoints

Question asked by fsck_awk on May 2, 2018
Latest reply on May 3, 2018 by angelborroy

I'm using Alfresco Community - 5.2.0 (re21f2be5-b22).


I'd like to use the /people/{personId}/sites/{siteId} API.
According Alfresco Content Services REST API Explorer I should use an URL similar to



My problem is:


When I use that URL (where "MySite" is my site's "shortName"), my server answers:


* <url> malformed

When I try to omit MySite I get the same result.


But if I try the old URL



I do get a jshon with the list of sites. Incidentally, output is different from that in the documentation. There should  be a "siteID" field, but my sites are listed like this:


"url": "\/alfresco\/service\/api\/sites\/MySite",
"sitePreset": "site-dashboard",
"shortName": "MySite",
"title": "My Site",
"description": "Foo Bar",
"node": "\/alfresco\/service\/api\/node\/workspace\/SpacesStore\/e3b7aaf8-8dca-4433-b851-8b82e55865ef",
"tagScope": "\/alfresco\/service\/api\/tagscopes\/workspace\/SpacesStore\/e3b7aaf8-8dca-4433b851-8b82e55865ef",
"isPublic": false,
"visibility": "PRIVATE"




That seems promising, but adding again the short name of the site





* The requested URL returned error: 404 Not Found
* Closing connection 0


So, the questions are:


I should be using the "-default-/..../versions/1" URL's or the other ones?
Why "MySite" is Not Found in my last example? Is {siteID} not the same as "shortname" ?