This question was answered by Bryan Bende here[1]. The response was:
That REST end-point was introduced when NiFi introduced Site-To-Site over HTTP, previously Site-To-Site was always over TCP. There is a Site-To-Site Java client which probably makes more sense to use rather than going directly to the API: https://github.com/apache/nifi/blob/master/nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/client/SiteToSiteClient.java Set the transport protocol to HTTP. [1] https://community.hortonworks.com/questions/78054/how-to-use-rest-api-ressource-data-transfer.html On Mon, Jan 16, 2017 at 9:24 AM, Matt Gilman <[email protected]> wrote: > I'm not super familiar with this endpoint so hopefully someone else can > chime in here if necessary. But I believe the transactionId is already > composed in the Location header of this endpoint > > POST > /data-transfer/input-ports/{portId}/transactions > > There is a Java class [1] available in NiFi commons site to site client > that can be used to interact with these endpoints. Hopefully, this can be > helpful. > > Matt > > [1] https://github.com/apache/nifi/blob/master/nifi-commons/ > nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/util/ > SiteToSiteRestApiClient.java > > On Mon, Jan 16, 2017 at 8:35 AM, iboumedien <[email protected]> wrote: > >> Hi guys, >> >> I want to use the REST API of Nifi in particularly this one: >> >> POST >> /data-transfer/input-ports/{portId}/transactions/{transactio >> nId}/flow-files >> >> But I'm not to found how I ca get the transactionId? >> >> Can anyone help me? >> >> Best regards >> >> Ismael >> >> >> >> -- >> View this message in context: http://apache-nifi-users-list. >> 2361937.n4.nabble.com/How-to-use-Rest-API-ressource-data-tra >> nsfer-tp666.html >> Sent from the Apache NiFi Users List mailing list archive at Nabble.com. >> > > -- *Joe Percivall* linkedin.com/in/Percivall e: [email protected]
