Skip to content

Commit

Permalink
[BOT] [CREATE-SWAGGER] [SKIP-GH-PAGES] create swagger for "multichain…
Browse files Browse the repository at this point in the history
…-aggregator" of version main
  • Loading branch information
blockscout-bot committed Jan 9, 2025
1 parent 1f7b0f3 commit 0cd4928
Showing 1 changed file with 125 additions and 29 deletions.
154 changes: 125 additions & 29 deletions services/multichain-aggregator/main/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ paths:
in: query
required: false
type: string
- name: chain_id
in: query
required: false
type: string
- name: page_size
in: query
required: false
Expand Down Expand Up @@ -77,6 +81,38 @@ paths:
type: string
tags:
- MultichainAggregatorService
/api/v1/tokens:
get:
operationId: MultichainAggregatorService_ListTokens
responses:
"200":
description: A successful response.
schema:
$ref: '#/definitions/v1ListTokensResponse'
default:
description: An unexpected error response.
schema:
$ref: '#/definitions/rpcStatus'
parameters:
- name: q
in: query
required: false
type: string
- name: chain_id
in: query
required: false
type: string
- name: page_size
in: query
required: false
type: integer
format: int64
- name: page_token
in: query
required: false
type: string
tags:
- MultichainAggregatorService
/health:
get:
summary: |-
Expand All @@ -100,21 +136,41 @@ paths:
tags:
- Health
definitions:
AddressTokenType:
type: string
enum:
- TOKEN_TYPE_UNSPECIFIED
- TOKEN_TYPE_ERC_20
- TOKEN_TYPE_ERC_721
- TOKEN_TYPE_ERC_1155
- TOKEN_TYPE_ERC_404
default: TOKEN_TYPE_UNSPECIFIED
HashHashType:
type: string
enum:
- HASH_TYPE_BLOCK
- HASH_TYPE_TRANSACTION
default: HASH_TYPE_BLOCK
BatchImportRequestAddressImport:
type: object
properties:
hash:
type: string
ens_name:
type: string
contract_name:
type: string
token_name:
type: string
token_type:
$ref: '#/definitions/v1TokenType'
is_contract:
type: boolean
is_verified_contract:
type: boolean
is_token:
type: boolean
BatchImportRequestBlockRangeImport:
type: object
properties:
min_block_number:
type: string
format: uint64
max_block_number:
type: string
format: uint64
BatchImportRequestHashImport:
type: object
properties:
hash:
type: string
hash_type:
$ref: '#/definitions/v1HashType'
HealthCheckResponseServingStatus:
type: string
enum:
Expand Down Expand Up @@ -163,6 +219,11 @@ definitions:
items:
type: object
$ref: '#/definitions/v1MarketplaceDapp'
tokens:
type: array
items:
type: object
$ref: '#/definitions/v1Token'
protobufAny:
type: object
properties:
Expand Down Expand Up @@ -194,13 +255,15 @@ definitions:
token_name:
type: string
token_type:
$ref: '#/definitions/AddressTokenType'
$ref: '#/definitions/v1TokenType'
is_contract:
type: boolean
is_verified_contract:
type: boolean
is_token:
type: boolean
chain_id:
type: string
v1BatchImportRequest:
type: object
properties:
Expand All @@ -210,40 +273,39 @@ definitions:
type: array
items:
type: object
$ref: '#/definitions/v1Address'
$ref: '#/definitions/BatchImportRequestAddressImport'
block_ranges:
type: array
items:
type: object
$ref: '#/definitions/v1BlockRange'
$ref: '#/definitions/BatchImportRequestBlockRangeImport'
hashes:
type: array
items:
type: object
$ref: '#/definitions/v1Hash'
$ref: '#/definitions/BatchImportRequestHashImport'
api_key:
type: string
v1BatchImportResponse:
type: object
properties:
status:
type: string
v1BlockRange:
type: object
properties:
min_block_number:
type: string
format: uint64
max_block_number:
type: string
format: uint64
v1Hash:
type: object
properties:
hash:
type: string
hash_type:
$ref: '#/definitions/HashHashType'
$ref: '#/definitions/v1HashType'
chain_id:
type: string
v1HashType:
type: string
enum:
- HASH_TYPE_BLOCK
- HASH_TYPE_TRANSACTION
default: HASH_TYPE_BLOCK
v1HealthCheckResponse:
type: object
properties:
Expand All @@ -259,6 +321,16 @@ definitions:
$ref: '#/definitions/v1Address'
pagination:
$ref: '#/definitions/v1Pagination'
v1ListTokensResponse:
type: object
properties:
tokens:
type: array
items:
type: object
$ref: '#/definitions/v1Token'
pagination:
$ref: '#/definitions/v1Pagination'
v1MarketplaceDapp:
type: object
properties:
Expand All @@ -270,6 +342,8 @@ definitions:
type: string
short_description:
type: string
chain_id:
type: string
v1Pagination:
type: object
properties:
Expand All @@ -285,3 +359,25 @@ definitions:
type: object
additionalProperties:
$ref: '#/definitions/QuickSearchResponseChainSearchResult'
v1Token:
type: object
properties:
address:
type: string
icon_url:
type: string
name:
type: string
symbol:
type: string
chain_id:
type: string
v1TokenType:
type: string
enum:
- TOKEN_TYPE_UNSPECIFIED
- TOKEN_TYPE_ERC_20
- TOKEN_TYPE_ERC_721
- TOKEN_TYPE_ERC_1155
- TOKEN_TYPE_ERC_404
default: TOKEN_TYPE_UNSPECIFIED

0 comments on commit 0cd4928

Please sign in to comment.