Skip to content

Commit

Permalink
update : swagger update Gcp Accept
Browse files Browse the repository at this point in the history
  • Loading branch information
heedaeshin committed Aug 22, 2024
1 parent 81d963d commit 87b3583
Show file tree
Hide file tree
Showing 9 changed files with 297 additions and 50 deletions.
4 changes: 2 additions & 2 deletions websrc/controllers/generateHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions websrc/controllers/migrationGCPHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions websrc/controllers/migrationHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion websrc/controllers/migrationNCPHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion websrc/controllers/migrationNoSqlHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion websrc/controllers/migrationS3Handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
117 changes: 104 additions & 13 deletions websrc/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand All @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
Expand All @@ -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": {
Expand All @@ -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"
Expand All @@ -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": {
Expand All @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -399,7 +455,7 @@ const docTemplate = `{
"post": {
"description": "Generate test data on GCP Firestore.",
"consumes": [
"application/json"
"multipart/form-data"
],
"produces": [
"application/json"
Expand All @@ -421,7 +477,7 @@ const docTemplate = `{
{
"type": "file",
"description": "Parameters required to generate test data",
"name": "CredentialGCP",
"name": "gcpCredential",
"in": "formData",
"required": true
}
Expand All @@ -446,7 +502,7 @@ const docTemplate = `{
"post": {
"description": "Generate test data on GCP Cloud Storage.",
"consumes": [
"application/json"
"multipart/form-data"
],
"produces": [
"application/json"
Expand All @@ -468,7 +524,7 @@ const docTemplate = `{
{
"type": "file",
"description": "Parameters required to generate test data",
"name": "CredentialGCP",
"name": "gcpCredential",
"in": "formData",
"required": true
}
Expand Down Expand Up @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
Expand All @@ -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": {
Expand Down Expand Up @@ -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"
Expand All @@ -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": {
Expand Down
Loading

0 comments on commit 87b3583

Please sign in to comment.