Serge Huber created UNOMI-206:
---------------------------------

             Summary: Add endpoint to search in events
                 Key: UNOMI-206
                 URL: https://issues.apache.org/jira/browse/UNOMI-206
             Project: Apache Unomi
          Issue Type: Improvement
          Components: core
    Affects Versions: 1.3.0-incubating, 1.2.0-incubating, 1.1.0-incubating
            Reporter: Serge Huber
            Assignee: Serge Huber
             Fix For: 1.4.0-incubating


The idea is to add an endpoint to be able to search events. This can be very 
useful to retrieve for example all the view events generate by a specific 
profile.

Here's an example of what such a query could look like : 

 

POST /cxs/events/search
{code:java}
{
"limit" : 5,
"condition" : {
"type" : "booleanCondition", 
"parameterValues" : {
"operator" : "and",
"subConditions" : [ 
{
"type" : "eventTypeCondition",
"parameterValues" : {
"eventTypeId" : "view"
}
},
{
"type" : "eventPropertyCondition",
"parameterValues" : {
"propertyName" : "profileId", 
"comparisonOperator" : "equals", 
"propertyValue" : "0daab9e1-fc20-48a5-bfd7-a9dc634d8b9e"
}
}
]
}
}
}{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to