format (#1453)
This commit is contained in:
parent
a7bb9160c4
commit
0789d615d4
|
@ -95,40 +95,40 @@ pub async fn run(opts: RunOptions, state: ApiState) -> Result<()> {
|
|||
|
||||
#[derive(OpenApi)]
|
||||
#[openapi(
|
||||
paths(
|
||||
rest::get_price_feed,
|
||||
rest::get_vaa,
|
||||
rest::get_vaa_ccip,
|
||||
rest::latest_price_feeds,
|
||||
rest::latest_vaas,
|
||||
rest::price_feed_ids,
|
||||
rest::latest_price_updates,
|
||||
rest::timestamp_price_updates,
|
||||
rest::price_feeds_metadata,
|
||||
rest::price_stream_sse_handler,
|
||||
),
|
||||
components(
|
||||
schemas(
|
||||
rest::GetVaaCcipInput,
|
||||
rest::GetVaaCcipResponse,
|
||||
rest::GetVaaResponse,
|
||||
types::PriceIdInput,
|
||||
types::RpcPrice,
|
||||
types::RpcPriceFeed,
|
||||
types::RpcPriceFeedMetadata,
|
||||
types::RpcPriceIdentifier,
|
||||
types::EncodingType,
|
||||
types::PriceUpdate,
|
||||
types::BinaryPriceUpdate,
|
||||
types::ParsedPriceUpdate,
|
||||
types::RpcPriceFeedMetadataV2,
|
||||
types::PriceFeedMetadata,
|
||||
types::AssetType
|
||||
)
|
||||
),
|
||||
tags(
|
||||
(name = "hermes", description = "Pyth Real-Time Pricing API")
|
||||
)
|
||||
paths(
|
||||
rest::get_price_feed,
|
||||
rest::get_vaa,
|
||||
rest::get_vaa_ccip,
|
||||
rest::latest_price_feeds,
|
||||
rest::latest_vaas,
|
||||
rest::price_feed_ids,
|
||||
rest::latest_price_updates,
|
||||
rest::timestamp_price_updates,
|
||||
rest::price_feeds_metadata,
|
||||
rest::price_stream_sse_handler,
|
||||
),
|
||||
components(
|
||||
schemas(
|
||||
rest::GetVaaCcipInput,
|
||||
rest::GetVaaCcipResponse,
|
||||
rest::GetVaaResponse,
|
||||
types::PriceIdInput,
|
||||
types::RpcPrice,
|
||||
types::RpcPriceFeed,
|
||||
types::RpcPriceFeedMetadata,
|
||||
types::RpcPriceIdentifier,
|
||||
types::EncodingType,
|
||||
types::PriceUpdate,
|
||||
types::BinaryPriceUpdate,
|
||||
types::ParsedPriceUpdate,
|
||||
types::RpcPriceFeedMetadataV2,
|
||||
types::PriceFeedMetadata,
|
||||
types::AssetType
|
||||
)
|
||||
),
|
||||
tags(
|
||||
(name = "hermes", description = "Pyth Real-Time Pricing API")
|
||||
)
|
||||
)]
|
||||
struct ApiDoc;
|
||||
|
||||
|
|
Loading…
Reference in New Issue