Skip to content

Commit

Permalink
fix: swagger doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
heedaeshin committed Aug 27, 2024
1 parent ab77c7c commit 7029db1
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 205 deletions.
78 changes: 0 additions & 78 deletions websrc/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
78 changes: 0 additions & 78 deletions websrc/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
Expand Down
49 changes: 0 additions & 49 deletions websrc/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7029db1

Please sign in to comment.