This is an automated email from the ASF dual-hosted git repository.
pvillard pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git
The following commit(s) were added to refs/heads/main by this push:
new 33c8029d65 NIFI-12298 add swagger annotations for
createExtensionBundleVersion form fields
33c8029d65 is described below
commit 33c8029d65546b4d614690e0d1cfafb0e788db63
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 1be93c5dde..6434a4fe6c 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;
@@ -92,6 +94,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),