I am integrating the cmdbuild RESTful services into a workflow implemented in another product. From this product I have the details of an Employee but not their cmdbuild ID. I would like to obtain the ID from cmdbuild.
I first make a GET request to the following url:
https://my-cmdbuild-url/cmdbuild/services/rest/v1/classes/Employee/cards/
This returns every Employee. To narrow down the search I need to apply a filter, but the syntax eludes me.
Which of these is the correct way to filter a dataset?
{"filter": {"attribute":"LastName","operator":"contain","value":"Smith","parameterType":"fixed"}}
or
{"cql": "where LastName equals 'Smith'"}
Any assistance is appreciated.