I can’t find any reference to the cql endpoint in the latest REST Web service documentation (v3). Also the cql endpoint responds 404. Has it been deprecated?
If so, what is the expected alternative to do JOIN operations on multiple tables using REST v3?
clear cql has been deprecated to avioid exposing sql/query details. The replacement is ecql, which works in a different way (and uses the standard …/cards ws).
If you could share with us an example of your cql query (full ws call with parameters, please), we can provide you a replacement query for v3.
Trying to retrieve all Maintenance Requests associated to a specific CI, identified by its Code in an unique request.
The following worked well with v2:
http://localhost/cmdbuild/services/rest/v2/cql?filter={CQL: "from MaintRequest where Id in (/(select mr.\"Id\" from \"MaintRequest\" as mr join \"CI\" ci on ci.\"Id\" = mr.\"CI\" where ci.\"Code\"='my CI Code')/)"}
I’m also facing a similar (if not equal) problem as rokin.
I’m trying to make a filter that involves two classes:
let us say class A and class B.
They share a domain with relation 1:N (A:B).
(what is the HTTP-Get request I need to perform)
To list/select all the fields from both A and B,
where A.X>10 and B.Y > 5
Best regards,
André
PS: If I could have access to the ecql API/source code (which file @ bitbucket), I could try to solve this by myself otherwise I’m stuck with guessing how to solve this.
PS2: I’m afraid that most of us (end-users) use CQL only to perform SQL queries. Without any “real” documentation it’s unrealistically challenging trying to learn CQL.
PS3: Don’t get me wrong, I do appreciate all the functionalities and capabilities of CMDBUILD (Openmaint) complete time saver (for me), allowing to deploy solutions much faster than before