andrewmlim commented on a change in pull request #184: NIFIREG-268 Update user 
guide with upload/download bundle info
URL: https://github.com/apache/nifi-registry/pull/184#discussion_r282129473
 
 

 ##########
 File path: 
nifi-registry-core/nifi-registry-docs/src/main/asciidoc/user-guide.adoc
 ##########
 @@ -363,3 +365,58 @@ image::remove_user_from_group.png["Remove User From 
Group"]
 === Other Group Level Actions
 
 Editing group names, deleting groups, adding policies to/deleting policies 
from groups and granting special privileges to groups follow similar procedures 
described earlier for corresponding user level actions.
+
+== Manage Bundles
+
+Bundles can be managed through the REST API.
+
+=== Upload Bundle
+
+A bundle can be uploaded to a bucket by making a `POST` request to the 
following REST end-point:
+
+  /nifi-registry-api/buckets/<bucketId>/bundles/<bundleType>
+
+Replacing `bucketId` with the id of the bucket where the bundle is being 
uploaded to, and `bundleType` with the type of bundle being uploaded. Currently 
the only supported bundle type is a NiFi Archive (NAR) which can be specified 
as `nifi-nar`.
+
+The `Content-Type` of the request is expected to be `multipart/form-data`. An 
example of using `curl` to upload `my-processors-1.0.0.nar` would be the 
following:
+
+  curl -v -F file=@/path/to/my-processors-1.0.0.nar 
http://localhost:18080/nifi-registry-api/buckets/de8e08c9-592d-4e10-affe-b3752698f1d9/bundles/nifi-nar
+
+NOTE: In order to upload a NAR to NiFi Registry, it must contain the file 
'META-INF/docs/extension-manifest.xml' which is produced by the NAR Maven 
plugin, starting with version 1.3.0.
+
 
 Review comment:
   Format: _META-INF/docs/extension-manifest.xml_

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to