From 87b35833ce9c1fcc36afdbdaf387681fa7eff6fb Mon Sep 17 00:00:00 2001 From: heedaeshin Date: Thu, 22 Aug 2024 15:33:49 +0900 Subject: [PATCH] update : swagger update Gcp Accept --- websrc/controllers/generateHandlers.go | 4 +- websrc/controllers/migrationGCPHandlers.go | 8 +- websrc/controllers/migrationHandlers.go | 4 +- websrc/controllers/migrationNCPHandlers.go | 2 +- websrc/controllers/migrationNoSqlHandlers.go | 2 +- websrc/controllers/migrationS3Handlers.go | 2 +- websrc/docs/docs.go | 117 ++++++++++++++++--- websrc/docs/swagger.json | 117 ++++++++++++++++--- websrc/docs/swagger.yaml | 91 ++++++++++++--- 9 files changed, 297 insertions(+), 50 deletions(-) diff --git a/websrc/controllers/generateHandlers.go b/websrc/controllers/generateHandlers.go index 08f301a..3a34f76 100644 --- a/websrc/controllers/generateHandlers.go +++ b/websrc/controllers/generateHandlers.go @@ -181,7 +181,7 @@ func GenerateS3PostHandler(ctx echo.Context) error { // @Summary Generate test data on GCP Cloud Storage // @Description Generate test data on GCP Cloud Storage. // @Tags [Test Data Generation] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body GenDataParams true "Parameters required to generate test data" // @Param gcpCredential formData file true "Parameters required to generate test data" @@ -481,7 +481,7 @@ func GenerateDynamoDBPostHandler(ctx echo.Context) error { // @Summary Generate test data on GCP Firestore // @Description Generate test data on GCP Firestore. // @Tags [Test Data Generation] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body GenDataParams true "Parameters required to generate test data" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/controllers/migrationGCPHandlers.go b/websrc/controllers/migrationGCPHandlers.go index 34ae574..bf5e85d 100644 --- a/websrc/controllers/migrationGCPHandlers.go +++ b/websrc/controllers/migrationGCPHandlers.go @@ -29,7 +29,7 @@ import ( // @Summary Migrate data from GCP to Linux // @Description Migrate data stored in GCP Cloud Storage to a Linux-based system. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" @@ -95,7 +95,7 @@ func MigrationGCPToLinuxPostHandler(ctx echo.Context) error { // @Summary Migrate data from GCP to Windows // @Description Migrate data stored in GCP Cloud Storage to a Windows-based system. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" @@ -161,7 +161,7 @@ func MigrationGCPToWindowsPostHandler(ctx echo.Context) error { // @Summary Migrate data from GCP to AWS S3 // @Description Migrate data stored in GCP Cloud Storage to AWS S3. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" @@ -232,7 +232,7 @@ func MigrationGCPToS3PostHandler(ctx echo.Context) error { // @Summary Migrate data from GCP to NCP Object Storage // @Description Migrate data stored in GCP Cloud Storage to NCP Object Storage. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/controllers/migrationHandlers.go b/websrc/controllers/migrationHandlers.go index f148188..552d139 100644 --- a/websrc/controllers/migrationHandlers.go +++ b/websrc/controllers/migrationHandlers.go @@ -84,7 +84,7 @@ func MigrationLinuxToS3PostHandler(ctx echo.Context) error { // @Summary Migrate data from Linux to GCP Cloud Storage // @Description Migrate data stored in a Linux-based system to GCP Cloud Storage. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" @@ -271,7 +271,7 @@ func MigrationWindowsToS3PostHandler(ctx echo.Context) error { // @Summary Migrate data from Windows to GCP Cloud Storage // @Description Migrate data stored in a Windows-based system to GCP Cloud Storage. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/controllers/migrationNCPHandlers.go b/websrc/controllers/migrationNCPHandlers.go index f36c130..bf0000c 100644 --- a/websrc/controllers/migrationNCPHandlers.go +++ b/websrc/controllers/migrationNCPHandlers.go @@ -201,7 +201,7 @@ func MigrationNCPToS3PostHandler(ctx echo.Context) error { // @Summary Migrate data from NCP to GCP Cloud Storage // @Description Migrate data stored in NCP Object Storage to GCP Cloud Storage. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/controllers/migrationNoSqlHandlers.go b/websrc/controllers/migrationNoSqlHandlers.go index 8287c66..b3e0873 100644 --- a/websrc/controllers/migrationNoSqlHandlers.go +++ b/websrc/controllers/migrationNoSqlHandlers.go @@ -28,7 +28,7 @@ import ( // @Summary Migrate data from DynamoDB to Firestore // @Description Migrate data stored in AWS DynamoDB to Google Cloud Firestore. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/controllers/migrationS3Handlers.go b/websrc/controllers/migrationS3Handlers.go index 2aeeb6c..05b9020 100644 --- a/websrc/controllers/migrationS3Handlers.go +++ b/websrc/controllers/migrationS3Handlers.go @@ -138,7 +138,7 @@ func MigrationS3ToWindowsPostHandler(ctx echo.Context) error { // @Summary Migrate data from AWS S3 to GCP // @Description Migrate data stored in AWS S3 to Google Cloud Storage. // @Tags [Data Migration] -// @Accept json +// @Accept multipart/form-data // @Produce json // @Param RequestBody body MigrationForm true "Parameters required for migration" // @Param gcpCredential formData file true "Parameters required to generate test data" diff --git a/websrc/docs/docs.go b/websrc/docs/docs.go index 29a1094..50c7faa 100644 --- a/websrc/docs/docs.go +++ b/websrc/docs/docs.go @@ -27,7 +27,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in AWS DynamoDB to Google Cloud Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -45,6 +45,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -85,6 +92,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -125,6 +139,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -165,6 +186,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -187,7 +215,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in GCP Cloud Storage to a Linux-based system.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -205,6 +233,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -233,7 +268,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in GCP Cloud Storage to NCP Object Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -251,6 +286,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -273,7 +315,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in GCP Cloud Storage to AWS S3.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -291,6 +333,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -313,7 +362,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in GCP Cloud Storage to a Windows-based system.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -331,6 +380,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -399,7 +455,7 @@ const docTemplate = `{ "post": { "description": "Generate test data on GCP Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -421,7 +477,7 @@ const docTemplate = `{ { "type": "file", "description": "Parameters required to generate test data", - "name": "CredentialGCP", + "name": "gcpCredential", "in": "formData", "required": true } @@ -446,7 +502,7 @@ const docTemplate = `{ "post": { "description": "Generate test data on GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -468,7 +524,7 @@ const docTemplate = `{ { "type": "file", "description": "Parameters required to generate test data", - "name": "CredentialGCP", + "name": "gcpCredential", "in": "formData", "required": true } @@ -745,7 +801,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in a Linux-based system to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -763,6 +819,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -941,6 +1004,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -1003,7 +1073,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in NCP Object Storage to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1021,6 +1091,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -1175,7 +1252,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in AWS S3 to Google Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1193,6 +1270,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -1347,7 +1431,7 @@ const docTemplate = `{ "post": { "description": "Migrate data stored in a Windows-based system to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1365,6 +1449,13 @@ const docTemplate = `{ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { diff --git a/websrc/docs/swagger.json b/websrc/docs/swagger.json index a3c6f5f..a9a24e8 100644 --- a/websrc/docs/swagger.json +++ b/websrc/docs/swagger.json @@ -20,7 +20,7 @@ "post": { "description": "Migrate data stored in AWS DynamoDB to Google Cloud Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -38,6 +38,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -78,6 +85,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -118,6 +132,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -158,6 +179,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -180,7 +208,7 @@ "post": { "description": "Migrate data stored in GCP Cloud Storage to a Linux-based system.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -198,6 +226,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -226,7 +261,7 @@ "post": { "description": "Migrate data stored in GCP Cloud Storage to NCP Object Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -244,6 +279,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -266,7 +308,7 @@ "post": { "description": "Migrate data stored in GCP Cloud Storage to AWS S3.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -284,6 +326,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -306,7 +355,7 @@ "post": { "description": "Migrate data stored in GCP Cloud Storage to a Windows-based system.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -324,6 +373,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -392,7 +448,7 @@ "post": { "description": "Generate test data on GCP Firestore.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -414,7 +470,7 @@ { "type": "file", "description": "Parameters required to generate test data", - "name": "CredentialGCP", + "name": "gcpCredential", "in": "formData", "required": true } @@ -439,7 +495,7 @@ "post": { "description": "Generate test data on GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -461,7 +517,7 @@ { "type": "file", "description": "Parameters required to generate test data", - "name": "CredentialGCP", + "name": "gcpCredential", "in": "formData", "required": true } @@ -738,7 +794,7 @@ "post": { "description": "Migrate data stored in a Linux-based system to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -756,6 +812,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -934,6 +997,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -996,7 +1066,7 @@ "post": { "description": "Migrate data stored in NCP Object Storage to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1014,6 +1084,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -1168,7 +1245,7 @@ "post": { "description": "Migrate data stored in AWS S3 to Google Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1186,6 +1263,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { @@ -1340,7 +1424,7 @@ "post": { "description": "Migrate data stored in a Windows-based system to GCP Cloud Storage.", "consumes": [ - "application/json" + "multipart/form-data" ], "produces": [ "application/json" @@ -1358,6 +1442,13 @@ "schema": { "$ref": "#/definitions/controllers.MigrationForm" } + }, + { + "type": "file", + "description": "Parameters required to generate test data", + "name": "gcpCredential", + "in": "formData", + "required": true } ], "responses": { diff --git a/websrc/docs/swagger.yaml b/websrc/docs/swagger.yaml index ddfc49e..b75d97b 100644 --- a/websrc/docs/swagger.yaml +++ b/websrc/docs/swagger.yaml @@ -164,7 +164,7 @@ paths: /dynamodb/firestore: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in AWS DynamoDB to Google Cloud Firestore. parameters: - description: Parameters required for migration @@ -173,6 +173,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -199,6 +204,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -225,6 +235,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -251,6 +266,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -268,7 +288,7 @@ paths: /gcp/linux: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in GCP Cloud Storage to a Linux-based system. parameters: - description: Parameters required for migration @@ -277,6 +297,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -298,7 +323,7 @@ paths: /gcp/ncp: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in GCP Cloud Storage to NCP Object Storage. parameters: - description: Parameters required for migration @@ -307,6 +332,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -324,7 +354,7 @@ paths: /gcp/s3: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in GCP Cloud Storage to AWS S3. parameters: - description: Parameters required for migration @@ -333,6 +363,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -350,7 +385,7 @@ paths: /gcp/windows: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in GCP Cloud Storage to a Windows-based system. parameters: - description: Parameters required for migration @@ -359,6 +394,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -406,7 +446,7 @@ paths: /generate/firestore: post: consumes: - - application/json + - multipart/form-data description: Generate test data on GCP Firestore. parameters: - description: Parameters required to generate test data @@ -417,7 +457,7 @@ paths: $ref: '#/definitions/controllers.GenDataParams' - description: Parameters required to generate test data in: formData - name: CredentialGCP + name: gcpCredential required: true type: file produces: @@ -437,7 +477,7 @@ paths: /generate/gcp: post: consumes: - - application/json + - multipart/form-data description: Generate test data on GCP Cloud Storage. parameters: - description: Parameters required to generate test data @@ -448,7 +488,7 @@ paths: $ref: '#/definitions/controllers.GenDataParams' - description: Parameters required to generate test data in: formData - name: CredentialGCP + name: gcpCredential required: true type: file produces: @@ -632,7 +672,7 @@ paths: /linux/gcp: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in a Linux-based system to GCP Cloud Storage. parameters: - description: Parameters required for migration @@ -641,6 +681,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -757,6 +802,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -800,7 +850,7 @@ paths: /ncp/gcp: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in NCP Object Storage to GCP Cloud Storage. parameters: - description: Parameters required for migration @@ -809,6 +859,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -912,7 +967,7 @@ paths: /s3/gcp: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in AWS S3 to Google Cloud Storage. parameters: - description: Parameters required for migration @@ -921,6 +976,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: @@ -1024,7 +1084,7 @@ paths: /windows/gcp: post: consumes: - - application/json + - multipart/form-data description: Migrate data stored in a Windows-based system to GCP Cloud Storage. parameters: - description: Parameters required for migration @@ -1033,6 +1093,11 @@ paths: required: true schema: $ref: '#/definitions/controllers.MigrationForm' + - description: Parameters required to generate test data + in: formData + name: gcpCredential + required: true + type: file produces: - application/json responses: