This commit is contained in:
Daniel Chew 2024-04-15 22:59:30 +09:00 committed by GitHub
parent a7bb9160c4
commit 0789d615d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 34 deletions

View File

@ -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;