From 7029db1ab8d4bd5bdbe93eeb4aac0c685931728f Mon Sep 17 00:00:00 2001 From: heedaeshin Date: Tue, 27 Aug 2024 10:37:49 +0900 Subject: [PATCH] fix: swagger doc update --- websrc/docs/docs.go | 78 ---------------------------------------- websrc/docs/swagger.json | 78 ---------------------------------------- websrc/docs/swagger.yaml | 49 ------------------------- 3 files changed, 205 deletions(-) diff --git a/websrc/docs/docs.go b/websrc/docs/docs.go index f29de46..4874f0b 100644 --- a/websrc/docs/docs.go +++ b/websrc/docs/docs.go @@ -23,84 +23,6 @@ const docTemplate = `{ "host": "{{.Host}}", "basePath": "{{.BasePath}}", "paths": { - "/backup": { - "post": { - "description": "Migrate data stored in AWS DynamoDB to Google Cloud Firestore.", - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "[Data Migration]" - ], - "summary": "Migrate data from DynamoDB to Firestore", - "parameters": [ - { - "type": "string", - "name": "awsAccessKey", - "in": "formData" - }, - { - "type": "string", - "name": "awsBucket", - "in": "formData" - }, - { - "type": "string", - "name": "awsRegion", - "in": "formData" - }, - { - "type": "string", - "name": "awsSecretKey", - "in": "formData" - }, - { - "type": "string", - "name": "databaseId", - "in": "formData" - }, - { - "type": "string", - "name": "gcpBucket", - "in": "formData" - }, - { - "type": "string", - "name": "gcpRegion", - "in": "formData" - }, - { - "type": "string", - "name": "projectId", - "in": "formData" - }, - { - "type": "file", - "description": "Parameters required to generate test data", - "name": "gcpCredential", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "Successfully migrated data", - "schema": { - "$ref": "#/definitions/models.BasicResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/models.BasicResponse" - } - } - } - } - }, "/generate/dynamodb": { "post": { "description": "Generate test data on AWS DynamoDB.", diff --git a/websrc/docs/swagger.json b/websrc/docs/swagger.json index 0b06754..5309942 100644 --- a/websrc/docs/swagger.json +++ b/websrc/docs/swagger.json @@ -16,84 +16,6 @@ }, "basePath": "/", "paths": { - "/backup": { - "post": { - "description": "Migrate data stored in AWS DynamoDB to Google Cloud Firestore.", - "consumes": [ - "multipart/form-data" - ], - "produces": [ - "application/json" - ], - "tags": [ - "[Data Migration]" - ], - "summary": "Migrate data from DynamoDB to Firestore", - "parameters": [ - { - "type": "string", - "name": "awsAccessKey", - "in": "formData" - }, - { - "type": "string", - "name": "awsBucket", - "in": "formData" - }, - { - "type": "string", - "name": "awsRegion", - "in": "formData" - }, - { - "type": "string", - "name": "awsSecretKey", - "in": "formData" - }, - { - "type": "string", - "name": "databaseId", - "in": "formData" - }, - { - "type": "string", - "name": "gcpBucket", - "in": "formData" - }, - { - "type": "string", - "name": "gcpRegion", - "in": "formData" - }, - { - "type": "string", - "name": "projectId", - "in": "formData" - }, - { - "type": "file", - "description": "Parameters required to generate test data", - "name": "gcpCredential", - "in": "formData", - "required": true - } - ], - "responses": { - "200": { - "description": "Successfully migrated data", - "schema": { - "$ref": "#/definitions/models.BasicResponse" - } - }, - "500": { - "description": "Internal Server Error", - "schema": { - "$ref": "#/definitions/models.BasicResponse" - } - } - } - } - }, "/generate/dynamodb": { "post": { "description": "Generate test data on AWS DynamoDB.", diff --git a/websrc/docs/swagger.yaml b/websrc/docs/swagger.yaml index 052bf46..56ad40b 100644 --- a/websrc/docs/swagger.yaml +++ b/websrc/docs/swagger.yaml @@ -221,55 +221,6 @@ info: title: MC-Data-Manager REST API version: latest paths: - /backup: - post: - consumes: - - multipart/form-data - description: Migrate data stored in AWS DynamoDB to Google Cloud Firestore. - parameters: - - in: formData - name: awsAccessKey - type: string - - in: formData - name: awsBucket - type: string - - in: formData - name: awsRegion - type: string - - in: formData - name: awsSecretKey - type: string - - in: formData - name: databaseId - type: string - - in: formData - name: gcpBucket - type: string - - in: formData - name: gcpRegion - type: string - - in: formData - name: projectId - type: string - - description: Parameters required to generate test data - in: formData - name: gcpCredential - required: true - type: file - produces: - - application/json - responses: - "200": - description: Successfully migrated data - schema: - $ref: '#/definitions/models.BasicResponse' - "500": - description: Internal Server Error - schema: - $ref: '#/definitions/models.BasicResponse' - summary: Migrate data from DynamoDB to Firestore - tags: - - '[Data Migration]' /generate/dynamodb: post: consumes: