Skip to content

Commit

Permalink
FeatureAPI: get token balances count grouped by contarct address (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky authored Mar 23, 2021
1 parent b6a79cf commit 73e9bf7
Show file tree
Hide file tree
Showing 9 changed files with 384 additions and 0 deletions.
111 changes: 111 additions & 0 deletions cmd/api/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,63 @@ var doc = `{
}
}
},
"/v1/account/{network}/{address}/count": {
"get": {
"description": "Get account token balances count grouped by count",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"account"
],
"summary": "Get account token balances count grouped by count",
"operationId": "get-account-token-balances-count",
"parameters": [
{
"type": "string",
"description": "Network",
"name": "network",
"in": "path",
"required": true
},
{
"maxLength": 36,
"minLength": 36,
"type": "string",
"description": "Address",
"name": "address",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
}
}
}
},
"/v1/account/{network}/{address}/metadata": {
"get": {
"description": "Returns full metadata for account",
Expand Down Expand Up @@ -4105,6 +4162,12 @@ var doc = `{
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4121,6 +4184,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4151,6 +4220,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down Expand Up @@ -4185,6 +4260,12 @@ var doc = `{
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4201,6 +4282,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4228,6 +4315,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down Expand Up @@ -4322,6 +4415,12 @@ var doc = `{
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4338,6 +4437,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4365,6 +4470,12 @@ var doc = `{
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down
111 changes: 111 additions & 0 deletions cmd/api/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,63 @@
}
}
},
"/v1/account/{network}/{address}/count": {
"get": {
"description": "Get account token balances count grouped by count",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"tags": [
"account"
],
"summary": "Get account token balances count grouped by count",
"operationId": "get-account-token-balances-count",
"parameters": [
{
"type": "string",
"description": "Network",
"name": "network",
"in": "path",
"required": true
},
{
"maxLength": 36,
"minLength": 36,
"type": "string",
"description": "Address",
"name": "address",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "object",
"additionalProperties": {
"type": "integer"
}
}
},
"400": {
"description": "Bad Request",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
},
"500": {
"description": "Internal Server Error",
"schema": {
"$ref": "#/definitions/handlers.Error"
}
}
}
}
},
"/v1/account/{network}/{address}/metadata": {
"get": {
"description": "Returns full metadata for account",
Expand Down Expand Up @@ -4087,6 +4144,12 @@
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4103,6 +4166,12 @@
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4133,6 +4202,12 @@
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down Expand Up @@ -4167,6 +4242,12 @@
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4183,6 +4264,12 @@
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4210,6 +4297,12 @@
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down Expand Up @@ -4304,6 +4397,12 @@
"contract": {
"type": "string"
},
"creators": {
"type": "array",
"items": {
"type": "string"
}
},
"decimals": {
"type": "integer",
"x-nullable": true
Expand All @@ -4320,6 +4419,12 @@
"type": "string",
"x-nullable": true
},
"formats": {
"type": "array",
"items": {
"type": "object"
}
},
"is_boolean_amount": {
"type": "boolean",
"x-nullable": true
Expand Down Expand Up @@ -4347,6 +4452,12 @@
"type": "string",
"x-nullable": true
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"thumbnail_uri": {
"type": "string",
"x-nullable": true
Expand Down
Loading

0 comments on commit 73e9bf7

Please sign in to comment.