Hello,
i would like to use include: ["isFavorite"] in /alfresco/api/-default-/public/search/versions/1/search but it not works. How can i get isFavorite property in the response? Thank you
Well it seems there is not "isFavorite" option to include in the search REST API endpoint reponse. It may be due to the fact that isFavorite is user-specific.
You should use the favorite REST API endpoint, that seems to be always tied to a specific user, e.g.
http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/people/<user>/favorites
to get a list of all favorited documents, sites, etc... for a user.
Hope that helps
Ah, i see i forgot the word "user defined". Ok and is any possibility to filter favorite files by relativePath?
Looking at the API explorer, I guess you should add "?include=[path] in your favorites url call, and then do some sort of post processing on the results.
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.