Hi
I am trying to retrieve all possible values for subjects trough REST API (even if the subject is not used in any document)
Here is the POST request that I am sending to URL
http://localhost:8080/nuxeo/site/automation/Document.Query
HTTP headers:
X-NXDocumentProperties *
Accept: application/json+nxentity
Content-type: application/json+nxrequest; charset=UTF-8
POST body to
{"params":{"query":"SELECT DISTINCT dc:subjects/*1 FROM Document "},"context":{}}
The problem is that I am receiving an empty result like:
{"entity-type":"documents","entries":[]}
What I am doing wrong? (I do have some documents with assigned subjects).
I guess even if I manage to run the query, it will return the assigned subjects (to any of the documents).
How can I return all the subjects, even if they are not assigned?
Thanks,