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

HandleHTTPRequest: store capture groups in regex as properties

    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

          People

            Unassigned Unassigned
            banasura William H.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

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