This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch support/nifi-1.x
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/support/nifi-1.x by this push:
new 84becd0a63 NIFI-12298 add swagger annotations for
createExtensionBundleVersion form fields
84becd0a63 is described below
commit 84becd0a63711cc4fa9ea4fd24b641e0066df171
Author: Zackeus Bengtsson <[email protected]>
AuthorDate: Tue Oct 31 20:44:37 2023 +0100
NIFI-12298 add swagger annotations for createExtensionBundleVersion form
fields
Signed-off-by: Pierre Villard <[email protected]>
This closes #7961.
---
.../nifi/registry/web/api/BucketBundleResource.java | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git
a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketBundleResource.java
b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketBundleResource.java
index 60d8df556d..9120639c18 100644
---
a/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketBundleResource.java
+++
b/nifi-registry/nifi-registry-core/nifi-registry-web-api/src/main/java/org/apache/nifi/registry/web/api/BucketBundleResource.java
@@ -19,6 +19,8 @@ package org.apache.nifi.registry.web.api;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import io.swagger.annotations.Authorization;
@@ -88,6 +90,22 @@ public class BucketBundleResource extends
ApplicationResource {
@ExtensionProperty(name = "resource", value =
"/buckets/{bucketId}") })
}
)
+ @ApiImplicitParams(
+ value = {
+ @ApiImplicitParam(
+ name = "file",
+ value = "The binary content of the bundle file
being uploaded.",
+ required = true,
+ type = "file",
+ paramType = "formData"),
+ @ApiImplicitParam(
+ name = "sha256",
+ value = "Optional sha256 of the provided bundle",
+ required = false,
+ type = "string",
+ paramType = "formData")
+ }
+ )
@ApiResponses({
@ApiResponse(code = 400, message = HttpStatusMessages.MESSAGE_400),
@ApiResponse(code = 401, message = HttpStatusMessages.MESSAGE_401),