You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Trần Tiến Đức (JIRA)" <se...@james.apache.org> on 2018/10/17 08:21:00 UTC
[jira] [Created] (JAMES-2566) [DLP] Routes for validationg regex
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org