List all threats
GET {{baseUrl}}/v1/ws/:workspaceId/RiskThreats?q=eu&page=61551403&size=61551403&skip=61551403&sortBy=eu&asc=true&filters=eu
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
q | 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
[{"label":"sit reprehenderit officia proident","id":"urn:uuid:2845252a-69f4-82b9-fac7-b4d0b8f4e465","description":"laboris culpa et officia","dateCreation":"1951-05-25T04:31:28.109Z","dateUpdate":"2014-12-22T18:24:40.988Z","creator":{"id":-41925990,"displayName":"ex in","familyName":"eu a","givenName":"velit amet cillum","email":"pariatur quis","color":"","avatarUrl":"d","tenantId":70835026}},{"label":"nostrud cupidatat non Duis","id":"urn:uuid:bf604a67-77d1-bc3a-b5ed-520a5a3cedf4","description":"in in in","dateCreation":"1972-02-03T15:46:28.839Z","dateUpdate":"1961-08-08T05:02:45.654Z","creator":{"id":10686515,"displayName":"magna labore","familyName":"esse","givenName":"laborum voluptate","email":"sed ","color":"qui elit","avatarUrl":"proident","tenantId":47095110}}]