Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update swagger parametype #26

Merged
merged 1 commit into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions websrc/controllers/migrationNoSqlHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ import (
// @Tags [Data Migration]
// @Accept multipart/form-data
// @Produce json
// @Param AWSMigrationParams body AWSMigrationParams true "Parameters required for Linux migration"
// @Param GCPMigrationParams body GCPMigrationParams true "Parameters required for GCP migration"
// @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for Linux migration"
// @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -100,8 +100,8 @@ func MigrationDynamoDBToFirestorePostHandler(ctx echo.Context) error {
// @Tags [Data Migration]
// @Accept json
// @Produce json
// @Param AWSMigrationParams body AWSMigrationParams true "Parameters required for AWS migration"
// @Param MongoMigrationParams body MongoMigrationParams true "Parameters required for NCP migration"
// @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for AWS migration"
// @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
// @Router /migration/dynamodb/mongodb [post]
Expand Down Expand Up @@ -159,8 +159,8 @@ func MigrationDynamoDBToMongoDBPostHandler(ctx echo.Context) error {
// @Tags [Data Migration]
// @Accept multipart/form-data
// @Produce json
// @Param GCPMigrationParams body GCPMigrationParams true "Parameters required for GCP migration"
// @Param AWSMigrationParams body AWSMigrationParams true "Parameters required for AWS migration"
// @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration"
// @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for AWS migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -229,8 +229,8 @@ func MigrationFirestoreToDynamoDBPostHandler(ctx echo.Context) error {
// @Tags [Data Migration]
// @Accept multipart/form-data
// @Produce json
// @Param GCPMigrationParams body GCPMigrationParams true "Parameters required for GCP migration"
// @Param MongoMigrationParams body MongoMigrationParams true "Parameters required for NCP migration"
// @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration"
// @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -299,8 +299,8 @@ func MigrationFirestoreToMongoDBPostHandler(ctx echo.Context) error {
// @Tags [Data Migration]
// @Accept json
// @Produce json
// @Param MongoMigrationParams body MongoMigrationParams true "Parameters required for NCP migration"
// @Param AWSMigrationParams body AWSMigrationParams true "Parameters required for AWS migration"
// @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration"
// @Param AWSMigrationParams formData AWSMigrationParams true "Parameters required for AWS migration"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
// @Router /mongodb/dynamodb [post]
Expand Down Expand Up @@ -359,8 +359,8 @@ func MigrationMongoDBToDynamoDBPostHandler(ctx echo.Context) error {
// @Tags [Data Migration]
// @Accept multipart/form-data
// @Produce json
// @Param MongoMigrationParams body MongoMigrationParams true "Parameters required for NCP migration"
// @Param GCPMigrationParams body GCPMigrationParams true "Parameters required for GCP migration"
// @Param MongoMigrationParams formData MongoMigrationParams true "Parameters required for NCP migration"
// @Param GCPMigrationParams formData GCPMigrationParams true "Parameters required for GCP migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down
Loading
Loading