Re: Rest API Client swagger.json

2016-10-13 Thread Stéphane Maarek
Thanks, FYI, I've started to host my own swagger-codegen generated Java Client on my github: https://github.com/simplesteph/nifi-api-client-java . Check out the docs! If you want to start playing and get a feel for it: public static void main(String[] args) { ApiClient apiClient = new ApiC

Re: Rest API Client swagger.json

2016-10-13 Thread Andy LoPresto
Stéphane asked a question on the PR but as it was already closed, I wanted to reproduce it here for visibility and to see if other community members had something to add: Stéphane: good stuff. Quick question, what do you think of NiFi automating the build and release of API clients in various

Re: Rest API Client swagger.json

2016-10-13 Thread Matt Gilman
Thanks for submitting the PR Stephane! I see that Andy has already stated that he's reviewing. Thanks Andy! On Thu, Oct 13, 2016 at 7:42 PM, Stéphane Maarek wrote: > Investigated some more, open a JIRA issue, closed it via > https://github.com/apache/nifi/pull/1135 > > On Fri, Oct 14, 2016 at 9:

Re: Rest API Client swagger.json

2016-10-13 Thread Stéphane Maarek
Investigated some more, open a JIRA issue, closed it via https://github.com/apache/nifi/pull/1135 On Fri, Oct 14, 2016 at 9:47 AM Stéphane Maarek wrote: > Hi, > > Thanks it helps ! Good to know there is already a java client I could use. > Nonetheless I think it would be extremely nice to use th

Re: Rest API Client swagger.json

2016-10-13 Thread Stéphane Maarek
Hi, Thanks it helps ! Good to know there is already a java client I could use. Nonetheless I think it would be extremely nice to use the swagger codegen project to generate additionally sdks, I don't mind creating a github project of my own to maintain these. I gave it a go and it gave me a bunch

Re: Rest API Client swagger.json

2016-10-13 Thread Matt Gilman
Stephane, Yes, you are correct that Apache NiFi uses swagger. However, we are only using it for keeping the documentation in sync. We use a maven plugin that inspects the swagger annotations and generates a swagger.json. The swagger.json is generated to nifi-web-api/target/swagger-ui/swagger.json