Skip to content

Commit

Permalink
fix: gen swagger for pnl token changes
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenHuy1812 committed Jan 23, 2024
1 parent 332dc85 commit d02cf29
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 7 deletions.
16 changes: 15 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4878,13 +4878,18 @@ const docTemplate = `{
],
"summary": "Get product changelogs",
"parameters": [
{
"type": "integer",
"name": "page",
"in": "query"
},
{
"type": "string",
"name": "product",
"in": "query"
},
{
"type": "string",
"type": "integer",
"name": "size",
"in": "query"
}
Expand Down Expand Up @@ -7658,6 +7663,9 @@ const docTemplate = `{
},
"updated_at": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -9647,6 +9655,9 @@ const docTemplate = `{
"native": {
"type": "boolean"
},
"pnl": {
"type": "string"
},
"price": {
"type": "number"
},
Expand Down Expand Up @@ -12726,6 +12737,9 @@ const docTemplate = `{
"items": {
"$ref": "#/definitions/model.ProductChangelogs"
}
},
"pagination": {
"$ref": "#/definitions/response.PaginationResponse"
}
}
},
Expand Down
16 changes: 15 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4870,13 +4870,18 @@
],
"summary": "Get product changelogs",
"parameters": [
{
"type": "integer",
"name": "page",
"in": "query"
},
{
"type": "string",
"name": "product",
"in": "query"
},
{
"type": "string",
"type": "integer",
"name": "size",
"in": "query"
}
Expand Down Expand Up @@ -7650,6 +7655,9 @@
},
"updated_at": {
"type": "string"
},
"version": {
"type": "string"
}
}
},
Expand Down Expand Up @@ -9639,6 +9647,9 @@
"native": {
"type": "boolean"
},
"pnl": {
"type": "string"
},
"price": {
"type": "number"
},
Expand Down Expand Up @@ -12718,6 +12729,9 @@
"items": {
"$ref": "#/definitions/model.ProductChangelogs"
}
},
"pagination": {
"$ref": "#/definitions/response.PaginationResponse"
}
}
},
Expand Down
19 changes: 14 additions & 5 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -726,6 +726,8 @@ definitions:
type: string
updated_at:
type: string
version:
type: string
type: object
model.ProductMetadataEmojis:
properties:
Expand Down Expand Up @@ -2039,6 +2041,8 @@ definitions:
type: string
native:
type: boolean
pnl:
type: string
price:
type: number
symbol:
Expand Down Expand Up @@ -3084,14 +3088,14 @@ definitions:
type: string
usd:
type: number
usd_1y_change:
type: number
usd_7d_change:
type: number
usd_14d_change:
type: number
usd_1h_change:
type: number
usd_1y_change:
type: number
usd_7d_change:
type: number
usd_24h_change:
type: number
usd_24h_vol:
Expand Down Expand Up @@ -4046,6 +4050,8 @@ definitions:
items:
$ref: '#/definitions/model.ProductChangelogs'
type: array
pagination:
$ref: '#/definitions/response.PaginationResponse'
type: object
response.ProfileAirdropCampaignResponse:
properties:
Expand Down Expand Up @@ -7750,12 +7756,15 @@ paths:
- application/json
description: Get product changelogs
parameters:
- in: query
name: page
type: integer
- in: query
name: product
type: string
- in: query
name: size
type: string
type: integer
produces:
- application/json
responses:
Expand Down

0 comments on commit d02cf29

Please sign in to comment.