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 <bbende@apache.org>
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 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 @@
@PathParam("flowId")
@ApiParam("The flow identifier")
final String flowId,
+ @ApiParam("The updated flow")
final VersionedFlow flow) {
verifyPathParamsMatchBody(bucketId, flowId, flow);
@@ -251,6 +254,7 @@
@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 @@
}
private static void setSnaphotMetadataIfMissing(
- @NotNull String bucketIdParam,
+ @NotNull String bucketIdParam,
@NotNull String flowIdParam,
@NotNull VersionedFlowSnapshot flowSnapshot) {