List all risk types
GET {{baseUrl}}/v1/ws/:workspaceId/RiskTypes?dataProcessings=d4f4baa2-55ee-3f4c-0ca0-c6deaeed0857&dataProcessings=urn:uuid:ff11db24-69a8-3ad2-d3e2-f5cb64653a1d&enabled=true&tags=88057944&tags=-17779712&categories=d4f4baa2-55ee-3f4c-0ca0-c6deaeed0857&categories=urn:uuid:ff11db24-69a8-3ad2-d3e2-f5cb64653a1d&controlPointId=90244082-e0f0-7c09-2426-64e4431d1d9d&page=61551403&size=61551403&skip=61551403&sortBy=eu&asc=true&filters=eu
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
dataProcessings | string | ||
dataProcessings | string | ||
enabled | boolean | ||
tags | number | ||
tags | number | ||
categories | string | ||
categories | string | ||
controlPointId | 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":"esse do l","ref":"aute ","id":"urn:uuid:64e2e071-c68d-39e7-d346-4d77f50699bd","dateCreation":"1943-07-02T17:59:13.024Z","dateUpdate":"1996-01-10T11:35:33.285Z","createdBy":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"category":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"categoryId":"urn:uuid:0f67e64f-473b-a781-5b0b-125189eab387","description":"proident occaecat ex dolore","threatDescription":"Ut pariatur anim culpa ad","sourceDescription":"in sint","impactInitial":93470043,"probabilityInitial":-12936848,"impactResidual":-76730600,"probabilityResidual":-50344677,"tags":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"controlPoints":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"threats":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"label":"dolor consequat et","ref":"eiusmod ut sunt ","id":"227cd748-5e98-9fc2-4028-037f1dea39d2","dateCreation":"1965-08-22T11:25:42.037Z","dateUpdate":"1961-04-09T00:51:23.529Z","createdBy":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"category":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"categoryId":"342570ba-e8f5-abdd-72de-a5330c12832a","description":"laboris non irure voluptate ut","threatDescription":"sunt quis elit tempor cupidat","sourceDescription":"dolore labore Ut ullamco","impactInitial":-77244707,"probabilityInitial":-71851899,"impactResidual":-16483247,"probabilityResidual":-76190343,"tags":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"controlPoints":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"threats":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}],"total":-76193253,"size":29035459,"page":-92877341}