Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 383A3200D01 for ; Thu, 7 Sep 2017 23:56:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 36FC516098B; Thu, 7 Sep 2017 21:56:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 849831609BD for ; Thu, 7 Sep 2017 23:56:12 +0200 (CEST) Received: (qmail 57397 invoked by uid 500); 7 Sep 2017 21:56:10 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 57272 invoked by uid 99); 7 Sep 2017 21:56:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 21:56:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D652CD8153 for ; Thu, 7 Sep 2017 21:56:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id AEf4ajlorkmy for ; Thu, 7 Sep 2017 21:56:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 7195561037 for ; Thu, 7 Sep 2017 21:56:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 66499E0EF9 for ; Thu, 7 Sep 2017 21:56:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9C4C72416C for ; Thu, 7 Sep 2017 21:56:00 +0000 (UTC) Date: Thu, 7 Sep 2017 21:56:00 +0000 (UTC) From: "Daniel Chaffelson (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (NIFI-4332) Add NiFi Shell for interacting with NiFi REST API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Sep 2017 21:56:13 -0000 [ https://issues.apache.org/jira/browse/NIFI-4332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16157728#comment-16157728 ] Daniel Chaffelson edited comment on NIFI-4332 at 9/7/17 9:55 PM: ----------------------------------------------------------------- In the interest of -resolving- adding to this issue I have started ernest work on a Python wrapper for the Rest API by leveraging the Swagger definition produced at build time to create a base API interface in native Python, and then a wrapper module to provide users with much-requested high level functions. The use of the Swagger definition provides the full Rest API as callable python methods and properties with minimal additional coding, with easy integration into more abstract commands like 'deploy template'. https://github.com/Chaffelson/nipyapi This is mainly driven by several large users wanting NiFi as a layer in their data-movement-as-a-service platform, where a user portal drives instantiation of templates to complete movement tasks which leverage NiFi's other desirable framework features, but make little initial use of the GUI apart from administrative monitoring tasks. Contributions and advice on how this can integrate with current development efforts very welcome. I am also aware of a project in Java focussed around Template deployment, but with good potential for expansion https://github.com/hermannpencole/nifi-config was (Author: chaffelson): In the interest of -resolving- adding to this issue I have started ernest work on a Python wrapper for the Rest API by leveraging the Swagger definition produced at build time to create a base API interface in native Python, and then a wrapper module to provide users with much-requested high level functions. The use of the Swagger definition provides the full Rest API as callable python methods and properties with minimal additional coding, with easy integration into more abstract commands like 'deploy template'. https://github.com/Chaffelson/nipyapi This is mainly driven by several large users wanting NiFi as a layer in their data-movement-as-a-service platform, where a user portal drives instantiation of templates to complete movement tasks which leverage NiFi's other desirable framework features, but make little initial use of the GUI apart from administrative monitoring tasks. I am also aware of a project in Java focussed around Template deployment, but with good potential for expansion https://github.com/hermannpencole/nifi-config > Add NiFi Shell for interacting with NiFi REST API > ------------------------------------------------- > > Key: NIFI-4332 > URL: https://issues.apache.org/jira/browse/NIFI-4332 > Project: Apache NiFi > Issue Type: Improvement > Reporter: Jeremy Dyer > Assignee: Jeremy Dyer > > There are several permutations of nifi shells floating around on Github. The fact that so many of these exists tells me its a feature people want. I propose we add a NiFi shell to the official project that people can use for official interaction with the NiFi REST API. While shells are typically not written in Java I feel quite strongly in our case using Java would be the best fit. Using Java would allow us to use reflection on the "nifi-web-api" layer to reflected expected types, paths, responses, etc with minimal coding effort. > I expect there will be many more features that can be added to this shell but as a minimal starting point the shell should allow an end user to interact with all of the NiFi REST API endpoints defined at https://nifi.apache.org/docs/nifi-docs/rest-api/index.html -- This message was sent by Atlassian JIRA (v6.4.14#64029)