You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "William H. (JIRA)" <ji...@apache.org> on 2017/07/26 11:58:00 UTC
[jira] [Created] (NIFI-4229) HandleHTTPRequest: store capture
groups in regex as properties
William H. created NIFI-4229:
--------------------------------
Summary: HandleHTTPRequest: store capture groups in regex as properties
Key: NIFI-4229
URL: https://issues.apache.org/jira/browse/NIFI-4229
Project: Apache NiFi
Issue Type: Improvement
Affects Versions: 1.3.0
Reporter: William H.
Priority: Minor
It would be great to store capture groups specified in the regex of the "Allowed paths" property of the HandleHTTPRequest processor.
It could allow to easily create a REST API, as we could specify some parameters in the URL that would be automatically parsed.
Ex :
{noformat}
^\/device\/([-\w\d]+)\/data$
{noformat}
Would accept the URL {noformat}http://localhost/device/01/data{noformat} and automatically create the attribute {noformat}http.request.params.1 = "01"{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)