NIFI-4835 Corrects Swagger spec response types in FlowResource
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/79fa4ad4 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/79fa4ad4 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/79fa4ad4 Branch: refs/heads/master Commit: 79fa4ad46fceaa8393d8cdc22d25c1d6ac8b47dc Parents: fdca7d0 Author: Kevin Doran <[email protected]> Authored: Sun Feb 18 22:15:01 2018 -0500 Committer: Matt Gilman <[email protected]> Committed: Thu Mar 8 14:30:31 2018 -0500 ---------------------------------------------------------------------- .../src/main/java/org/apache/nifi/web/api/FlowResource.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/79fa4ad4/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java index dad8039..60b811e 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/FlowResource.java @@ -1373,7 +1373,7 @@ public class FlowResource extends ApplicationResource { @Consumes(MediaType.WILDCARD) @Produces(MediaType.APPLICATION_JSON) @Path("registries/{registry-id}/buckets/{bucket-id}/flows") - @ApiOperation(value = "Gets the flows from the specified registry and bucket for the current user", response = BucketsEntity.class, authorizations = { + @ApiOperation(value = "Gets the flows from the specified registry and bucket for the current user", response = VersionedFlowsEntity.class, authorizations = { @Authorization(value = "Read - /flow") }) @ApiResponses(value = { @@ -1409,7 +1409,9 @@ public class FlowResource extends ApplicationResource { @Consumes(MediaType.WILDCARD) @Produces(MediaType.APPLICATION_JSON) @Path("registries/{registry-id}/buckets/{bucket-id}/flows/{flow-id}/versions") - @ApiOperation(value = "Gets the flow versions from the specified registry and bucket for the specified flow for the current user", response = BucketsEntity.class, authorizations = { + @ApiOperation(value = "Gets the flow versions from the specified registry and bucket for the specified flow for the current user", + response = VersionedFlowSnapshotMetadataSetEntity.class, + authorizations = { @Authorization(value = "Read - /flow") }) @ApiResponses(value = {
