You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by bb...@apache.org on 2018/01/30 18:33:26 UTC

[3/3] nifi-registry git commit: NIFIREG-132 Fixes Swagger annotations

NIFIREG-132 Fixes Swagger annotations

Fixes Swagger annotations for:
 - createFlow body parameter
 - updateFlow body parameter
 - createFlowVersion body parameter

This closes #95.

Signed-off-by: Bryan Bende <bb...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/nifi-registry/repo
Commit: http://git-wip-us.apache.org/repos/asf/nifi-registry/commit/ed86f1a9
Tree: http://git-wip-us.apache.org/repos/asf/nifi-registry/tree/ed86f1a9
Diff: http://git-wip-us.apache.org/repos/asf/nifi-registry/diff/ed86f1a9

Branch: refs/heads/master
Commit: ed86f1a9a42fe90fcc036ebfd85f6d350b69bb98
Parents: cdf5c1b
Author: Kevin Doran <kd...@apache.org>
Authored: Mon Jan 29 16:55:30 2018 -0500
Committer: Bryan Bende <bb...@apache.org>
Committed: Tue Jan 30 13:32:59 2018 -0500

----------------------------------------------------------------------
 .../org/apache/nifi/registry/web/api/BucketFlowResource.java | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/nifi-registry/blob/ed86f1a9/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketFlowResource.java
----------------------------------------------------------------------
diff --git a/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketFlowResource.java b/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketFlowResource.java
index 2e58723..dbe6407 100644
--- a/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketFlowResource.java
+++ b/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketFlowResource.java
@@ -99,7 +99,9 @@ public class BucketFlowResource extends AuthorizableApplicationResource {
     public Response createFlow(
             @PathParam("bucketId")
             @ApiParam("The bucket identifier")
-            final String bucketId, final VersionedFlow flow) {
+            final String bucketId,
+            @ApiParam("The details of the flow to create.")
+            final VersionedFlow flow) {
 
         authorizeBucketAccess(RequestAction.WRITE, bucketId);
         verifyPathParamsMatchBody(bucketId, flow);
@@ -189,6 +191,7 @@ public class BucketFlowResource extends AuthorizableApplicationResource {
             @PathParam("flowId")
             @ApiParam("The flow identifier")
                 final String flowId,
+            @ApiParam("The updated flow")
                 final VersionedFlow flow) {
 
         verifyPathParamsMatchBody(bucketId, flowId, flow);
@@ -251,6 +254,7 @@ public class BucketFlowResource extends AuthorizableApplicationResource {
             @PathParam("flowId")
             @ApiParam("The flow identifier")
                 final String flowId,
+            @ApiParam("The new versioned flow snapshot.")
                 final VersionedFlowSnapshot snapshot) {
 
         verifyPathParamsMatchBody(bucketId, flowId, snapshot);
@@ -507,7 +511,7 @@ public class BucketFlowResource extends AuthorizableApplicationResource {
     }
 
     private static void setSnaphotMetadataIfMissing(
-            @NotNull  String bucketIdParam,
+            @NotNull String bucketIdParam,
             @NotNull String flowIdParam,
             @NotNull VersionedFlowSnapshot flowSnapshot) {