30 May 2022 02:31 PM - last edited on 31 May 2022 08:44 AM by MaciejNeumann
Hello Community,
Im using the request naming rule API to creat a rule: /service/requestNaming
The body is like this:
{
"enabled": true,
"namingPattern": "/consumer/app/challenge/brw/[ID_GET]",
"conditions": [
{
"attribute": "WEBREQUEST_URL_PATH",
"comparisonInfo": {
"type": "STRING",
"comparison": "BEGINS_WITH",
"value": "/consumer/app/challenge/brw/",
"negate": false,
"caseSensitive": false
}
},
{
"attribute": "HTTP_REQUEST_METHOD",
"comparisonInfo": {
"type": "STRING",
"comparison": "EQUALS",
"value": "GET",
"negate": false,
"caseSensitive": false
}
}
]
}
Im getting the bellow error:
{ "error": { "code": 400, "message": "Constraints violated.", "constraintViolations": [ { "path": "conditions[1].attribute", "message": "Condition invalid combination of type, attribute and matcher", "parameterLocation": "PAYLOAD_BODY", "location": null } ] } }
If someone can help to fixe, I think is going wrong with HTTP_REQUEST_METHOD.
Thanks guys.
Solved! Go to Solution.
31 May 2022 05:17 AM - edited 31 May 2022 05:18 AM
The type in the http method clause need to be like so
31 May 2022 07:56 AM
Thanks,
Working fine.