Skip to content

Commit

Permalink
update swagger (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taehoya authored Feb 6, 2024
1 parent 50bdff3 commit 1babf3f
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 17 deletions.
38 changes: 32 additions & 6 deletions server/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 32 additions & 6 deletions server/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -690,13 +690,9 @@
"type": "integer",
"example": 1
},
"name_en": {
"name": {
"type": "string",
"example": "Food"
},
"name_ko": {
"type": "string",
"example": "음식"
}
}
},
Expand All @@ -705,7 +701,7 @@
"properties": {
"amount": {
"type": "number",
"example": 2000.12
"example": 100.12
},
"categoryId": {
"type": "integer",
Expand All @@ -729,6 +725,30 @@
}
}
},
"dto.TransactionResponseDTO": {
"type": "object",
"properties": {
"amount": {
"type": "number",
"example": 100.12
},
"category": {
"$ref": "#/definitions/dto.TransactionOption"
},
"description": {
"type": "string",
"example": "sample-description"
},
"name": {
"type": "string",
"example": "sample-name"
},
"transactionDateTime": {
"type": "string",
"example": "2023-11-25T15:04:05Z"
}
}
},
"dto.TripNoteProperty": {
"type": "object",
"required": [
Expand Down Expand Up @@ -827,6 +847,12 @@
"startDateTime": {
"type": "string",
"example": "2024-01-02T15:04:05Z"
},
"transactions": {
"type": "array",
"items": {
"$ref": "#/definitions/dto.TransactionResponseDTO"
}
}
}
},
Expand Down
28 changes: 23 additions & 5 deletions server/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,14 @@ definitions:
id:
example: 1
type: integer
name_en:
name:
example: Food
type: string
name_ko:
example: 음식
type: string
type: object
dto.TransactionRequestDTO:
properties:
amount:
example: 2000.12
example: 100.12
type: number
categoryId:
example: 1
Expand All @@ -69,6 +66,23 @@ definitions:
example: 1
type: integer
type: object
dto.TransactionResponseDTO:
properties:
amount:
example: 100.12
type: number
category:
$ref: '#/definitions/dto.TransactionOption'
description:
example: sample-description
type: string
name:
example: sample-name
type: string
transactionDateTime:
example: "2023-11-25T15:04:05Z"
type: string
type: object
dto.TripNoteProperty:
properties:
boundColor:
Expand Down Expand Up @@ -140,6 +154,10 @@ definitions:
startDateTime:
example: "2024-01-02T15:04:05Z"
type: string
transactions:
items:
$ref: '#/definitions/dto.TransactionResponseDTO'
type: array
required:
- countryProperty
type: object
Expand Down

0 comments on commit 1babf3f

Please sign in to comment.