searchSimpleAgg
POST
/{modelName}/searchSimpleAggSimple aggregation query params. Pure SUM, AVG, MIN, MAX, COUNT aggregate query, like ["SUM", "amount"]
or [["SUM", "amount"], [], ...]
, the return key is sumAmount
.
Request
Path Params
modelName
string
required
Body Params application/json
aggFunctions
object (AggFunctions)
optional
Support multiple aggregation queries:
- []
- ["SUM", "amount"]
- [["SUM", "amount"], ["COUNT", "id"]]
Example:
["SUM","amount"]
effectiveDate
string <date>
optional
Effective date, default is Today
.
filters
object (Filters)
optional
Support nested filters, such as [a OR b] AND [c OR d OR [e AND f] OR g]
- []
- ["name", "=", "Tom"]
- [["name", "=", "Tom"], ["version", "=", "6"]]
- [["name", "=", "Tom"], "OR", ["code", "=", "A010"], "OR", ["version", "=", "2"]]
- [["name", "=", "Tom"], "OR", ["code", "=", "A010"]], "AND", ["version", "=", "2"]]
Example:
["name","=","PM"]
Example
{
"aggFunctions": [
"SUM",
"amount"
],
"effectiveDate": "2019-08-24",
"filters": [
"name",
"=",
"PM"
]
}
Request samples
Responses
OK(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
code
integer <int32>
optional
Status Code
data
boolean
optional
Result Data
error
string
optional
Error Message
message
string
optional
Common Message
Example
Not configured
Last modified: 8 天前