[ 
https://issues.apache.org/jira/browse/NIFI-5214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16482395#comment-16482395
 ] 

ASF GitHub Bot commented on NIFI-5214:
--------------------------------------

Github user ottobackwards commented on the issue:

    https://github.com/apache/nifi/pull/2723
  
    @MikeThomsen 
    Here are the properties exposed for configuration of InvokeHttp:
    
    ```java
     public static final List<PropertyDescriptor> PROPERTIES = 
Collections.unmodifiableList(Arrays.asList(
                PROP_METHOD,
                PROP_URL,
                PROP_SSL_CONTEXT_SERVICE,
                PROP_CONNECT_TIMEOUT,
                PROP_READ_TIMEOUT,
                PROP_DATE_HEADER,
                PROP_FOLLOW_REDIRECTS,
                PROP_ATTRIBUTES_TO_SEND,
                PROP_BASIC_AUTH_USERNAME,
                PROP_BASIC_AUTH_PASSWORD,
                PROP_PROXY_HOST,
                PROP_PROXY_PORT,
                PROP_PROXY_TYPE,
                PROP_PROXY_USER,
                PROP_PROXY_PASSWORD,
                PROP_PUT_OUTPUT_IN_ATTRIBUTE,
                PROP_PUT_ATTRIBUTE_MAX_LENGTH,
                PROP_DIGEST_AUTH,
                PROP_OUTPUT_RESPONSE_REGARDLESS,
                PROP_TRUSTED_HOSTNAME,
                PROP_ADD_HEADERS_TO_REQUEST,
                PROP_CONTENT_TYPE,
                PROP_SEND_BODY,
                PROP_USE_CHUNKED_ENCODING,
                PROP_PENALIZE_NO_RETRY));
    ```
    
    Of these, I wonder if we should consider for the rest lookup
               PROP_CONNECT_TIMEOUT,
                PROP_READ_TIMEOUT,
                PROP_DATE_HEADER,
                PROP_FOLLOW_REDIRECTS,
                PROP_ATTRIBUTES_TO_SEND,
                PROP_TRUSTED_HOSTNAME,
                PROP_ADD_HEADERS_TO_REQUEST
    In whatever form makes sense for the lookup service.
    
    For example:  what if my lookup service is someone else's API and I need to 
send custom headers and api keys?
    



> Add a REST lookup service
> -------------------------
>
>                 Key: NIFI-5214
>                 URL: https://issues.apache.org/jira/browse/NIFI-5214
>             Project: Apache NiFi
>          Issue Type: New Feature
>            Reporter: Mike Thomsen
>            Assignee: Mike Thomsen
>            Priority: Major
>
> * Should have reader API support
>  * Should be able to drill down through complex XML and JSON responses to a 
> nested record.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to