Skip to content

Commit

Permalink
Merge pull request #20 from cloud-barista/feature/update-swagger-gcp-…
Browse files Browse the repository at this point in the history
…param

update : swwagger docs  gcp param update
  • Loading branch information
heedaeshin authored Aug 22, 2024
2 parents 25cc3c7 + 81d963d commit fe99b44
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ services:
restart : always
volumes:
- ./log:/app/log/
- /etc/localtime:/etc/localtime:ro
env_file:
- .env

Expand Down
4 changes: 2 additions & 2 deletions websrc/controllers/generateHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func GenerateS3PostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body GenDataParams true "Parameters required to generate test data"
// @Param CredentialGCP formData file true "Parameters required to generate test data"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully generated test data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
// @Router /generate/gcp [post]
Expand Down Expand Up @@ -484,7 +484,7 @@ func GenerateDynamoDBPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body GenDataParams true "Parameters required to generate test data"
// @Param CredentialGCP formData file true "Parameters required to generate test data"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully generated test data"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
// @Router /generate/firestore [post]
Expand Down
4 changes: 4 additions & 0 deletions websrc/controllers/migrationGCPHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 400 {object} models.BasicResponse "Invalid Request"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -97,6 +98,7 @@ func MigrationGCPToLinuxPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 400 {object} models.BasicResponse "Invalid Request"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -162,6 +164,7 @@ func MigrationGCPToWindowsPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /gcp/s3 [post]
Expand Down Expand Up @@ -232,6 +235,7 @@ func MigrationGCPToS3PostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /gcp/ncp [post]
Expand Down
2 changes: 2 additions & 0 deletions websrc/controllers/migrationHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func MigrationLinuxToS3PostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 400 {object} models.BasicResponse "Invalid Request"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down Expand Up @@ -273,6 +274,7 @@ func MigrationWindowsToS3PostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for migration"
// @Param gcpCredential formData file true "Parameters required to generate test data"
// @Success 200 {object} models.BasicResponse "Successfully migrated data"
// @Failure 400 {object} models.BasicResponse "Invalid Request"
// @Failure 500 {object} models.BasicResponse "Internal Server Error"
Expand Down
1 change: 1 addition & 0 deletions websrc/controllers/migrationNCPHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ func MigrationNCPToS3PostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /ncp/gcp [post]
Expand Down
5 changes: 5 additions & 0 deletions websrc/controllers/migrationNoSqlHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /dynamodb/firestore [post]
Expand Down Expand Up @@ -99,6 +100,7 @@ func MigrationDynamoDBToFirestorePostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /dynamodb/mongodb [post]
Expand Down Expand Up @@ -157,6 +159,7 @@ func MigrationDynamoDBToMongoDBPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /firestore/dynamodb [post]
Expand Down Expand Up @@ -225,6 +228,7 @@ func MigrationFirestoreToDynamoDBPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /firestore/mongodb [post]
Expand Down Expand Up @@ -352,6 +356,7 @@ func MigrationMongoDBToDynamoDBPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /mongodb/firestore [post]
Expand Down
1 change: 1 addition & 0 deletions websrc/controllers/migrationS3Handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func MigrationS3ToWindowsPostHandler(ctx echo.Context) error {
// @Accept json
// @Produce json
// @Param RequestBody body MigrationForm true "Parameters required for 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"
// @Router /s3/gcp [post]
Expand Down

0 comments on commit fe99b44

Please sign in to comment.