Skip to content

Commit

Permalink
Docs: Generate new swag
Browse files Browse the repository at this point in the history
  • Loading branch information
wjuniorbh92 committed Sep 28, 2023
1 parent b0ef274 commit 1c15cc1
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 204 deletions.
97 changes: 22 additions & 75 deletions backend/docs/docs.go

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

97 changes: 22 additions & 75 deletions backend/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,9 @@
},
"/assets/{id}/image": {
"post": {
"description": "Upload an image for a specific asset by ID",
"description": "Upload a base64 encoded image for a specific asset by ID",
"consumes": [
"multipart/form-data"
"application/json"
],
"produces": [
"application/json"
Expand All @@ -426,11 +426,13 @@
"required": true
},
{
"type": "file",
"description": "Asset Image",
"description": "Base64 Encoded Asset Image",
"name": "image",
"in": "formData",
"required": true
"in": "body",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
Expand Down Expand Up @@ -844,65 +846,6 @@
}
}
},
"/log_transactions/supply/{time_range}/{time_frame}": {
"get": {
"security": [
{
"ApiKeyAuth": []
}
],
"description": "Get sum of supply for all assets, grouped by a specified time frame (e.g., '1h' for 1 hour)",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"Log Transactions"
],
"summary": "Get sum of supply for all assets within a specific time frame",
"parameters": [
{
"type": "string",
"description": "Time range for the query (e.g., '24h' or '1d' '7d' '30d')",
"name": "time_range",
"in": "path",
"required": true
},
{
"type": "string",
"description": "Time frame for the query (e.g., '1h' '2h' '24h' '36h')",
"name": "time_frame",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/entity.SumLogTransaction"
}
}
},
"400": {
"description": "Invalid time_frame format",
"schema": {
"type": "string"
}
},
"500": {
"description": "Internal server error",
"schema": {
"type": "string"
}
}
}
}
},
"/log_transactions/transaction_type/{transaction_type_id}": {
"get": {
"security": [
Expand Down Expand Up @@ -2077,11 +2020,11 @@
"$ref": "#/definitions/entity.Asset"
},
"current_main_vault": {
"type": "integer",
"type": "number",
"example": 1000
},
"current_supply": {
"type": "integer",
"type": "number",
"example": 1000
},
"date": {
Expand Down Expand Up @@ -2134,6 +2077,10 @@
"entity.Role": {
"type": "object",
"properties": {
"admin": {
"type": "integer",
"example": 1
},
"id": {
"type": "integer",
"example": 1
Expand Down Expand Up @@ -2360,11 +2307,11 @@
"example": "1000"
},
"current_main_vault": {
"type": "integer",
"type": "number",
"example": 1000
},
"current_supply": {
"type": "integer",
"type": "number",
"example": 1000
},
"id": {
Expand Down Expand Up @@ -2394,11 +2341,11 @@
"example": "USDC"
},
"current_main_vault": {
"type": "integer",
"type": "number",
"example": 1000
},
"current_supply": {
"type": "integer",
"type": "number",
"example": 1000
},
"from": {
Expand Down Expand Up @@ -2588,11 +2535,11 @@
"example": "USDC"
},
"current_main_vault": {
"type": "integer",
"type": "number",
"example": 1000
},
"current_supply": {
"type": "integer",
"type": "number",
"example": 1000
},
"id": {
Expand Down Expand Up @@ -2640,11 +2587,11 @@
"example": "12"
},
"current_main_vault": {
"type": "integer",
"type": "number",
"example": 1000
},
"current_supply": {
"type": "integer",
"type": "number",
"example": 1000
},
"destination_wallet_pk": {
Expand Down
Loading

0 comments on commit 1c15cc1

Please sign in to comment.