Trần Tiến Đức created JAMES-2566:
------------------------------------
Summary: [DLP] Routes for validationg regex
Key: JAMES-2566
URL: https://issues.apache.org/jira/browse/JAMES-2566
Project: James Server
Issue Type: Improvement
Reporter: Trần Tiến Đức
OpenPaaS needs to validate some Java regex on top of a javascript powered
browser.
We need to add routes for validating this regex in James, where a Java runtime
is available.
API proposal:
{code:java}
POST /dlp/expression/validate
{ "expression":"(?i:aladin)" }
Will return
{ "isValid": true|false }
POST /dlp/expression/sampleMatch
{ "expression": "(?i:aladin)", "sampleValue": "Tu ne connais pas Aladin qui est
un si brave garçon?" }
Will return
{ "isValid": true|false, "isMatched": true|false }
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]