Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4229

HandleHTTPRequest: store capture groups in regex as properties

Agile BoardAttach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.3.0
    • None
    • None

    Description

      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 :

      ^\/device\/([-\w\d]+)\/data$
      

      Would accept the URL

      http://localhost/device/01/data

      and automatically create the attribute

      http.request.params.1 = "01"

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            banasura William H.

            Dates

              Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 3h
              3h
              Remaining:
              Remaining Estimate - 3h
              3h
              Logged:
              Time Spent - Not Specified
              Not Specified

              Slack

                Issue deployment