List all risk events
GET {{baseUrl}}/v1/ws/:workspaceId/RiskEvents?Type=90244082-e0f0-7c09-2426-64e4431d1d9d&page=61551403&size=61551403&skip=61551403&sortBy=eu&asc=true&filters=eu
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
Type | string | ||
page | number | Pagination index (1 based, page 1 = 1, page 2 = 2...) | |
size | number | Size of the result page (default: 20, max 500) | |
skip | number | The number of items to skip (if not provided, it will use the default page and size prop) | |
sortBy | string | The field to sort | |
asc | boolean | True to sort ascending | |
filters | string | A serialized as json filter string using the JsonRuleEngine.net format | |
https://github.com/antoinebidault/JsonRuleEngine.Net | |||
The filters is a query param, that's why he must be properly serialized as a json string and url encoded | |||
e.g. {"field":"ProcessingType", "operator":"notEqual", "value": "Done"} | |||
The field prop must match one property name of the object (present in the output results) | |||
The operator can be equal, | |||
notEqual, | |||
lessThan, | |||
lessThanInclusive, | |||
greaterThan, | |||
greaterThanInclusive, | |||
in, | |||
notIn, | |||
contains, | |||
doesNotContains, | |||
isNull, | |||
isNotNull, | |||
isEmpty | |||
You can combine the filters as following : | |||
{ "separator":"Or","rules": [{"field":"ProcessingType", "operator":"notEqual", "value": "Done"},{"field":"ProcessingType", "operator":"isNull"}]} | |||
Serialize the filter param as following: | |||
?filters=${uriEncodeComponent(JSON.stringify({"field":"ProcessingType", "operator":"notEqual", "value": "Done"}))} |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"items":[{"label":"quis deser","id":"urn:uuid:e351d82b-f97d-7996-ef0c-331ad39f30c8","descriptionHtml":"in laborum cupidatat commodo","impactValue":75211240,"date":"1998-02-07T02:55:35.106Z","dateCreation":"1992-11-09T07:16:04.589Z","dateUpdate":"2003-04-14T01:10:16.651Z","creator":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"typeId":"91304f2f-16f0-a7a6-1a75-eb70cd22a305","type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},{"label":"sit commodo irure dolore","id":"b81a035c-29de-ad4b-0cfa-c81d59eaf2c9","descriptionHtml":"cupidatat velit","impactValue":21815498,"date":"1992-06-21T15:45:26.767Z","dateCreation":"1963-07-09T14:31:40.428Z","dateUpdate":"2016-03-27T05:22:41.562Z","creator":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"typeId":"9b8913e8-0859-c078-104f-62a802836b46","type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}],"total":-11589949,"size":51684106,"page":-33632476}