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)] #[derive(OpenApi)]
#[openapi( #[openapi(
paths( paths(
rest::get_price_feed, rest::get_price_feed,
rest::get_vaa, rest::get_vaa,
rest::get_vaa_ccip, rest::get_vaa_ccip,
rest::latest_price_feeds, rest::latest_price_feeds,
rest::latest_vaas, rest::latest_vaas,
rest::price_feed_ids, rest::price_feed_ids,
rest::latest_price_updates, rest::latest_price_updates,
rest::timestamp_price_updates, rest::timestamp_price_updates,
rest::price_feeds_metadata, rest::price_feeds_metadata,
rest::price_stream_sse_handler, rest::price_stream_sse_handler,
), ),
components( components(
schemas( schemas(
rest::GetVaaCcipInput, rest::GetVaaCcipInput,
rest::GetVaaCcipResponse, rest::GetVaaCcipResponse,
rest::GetVaaResponse, rest::GetVaaResponse,
types::PriceIdInput, types::PriceIdInput,
types::RpcPrice, types::RpcPrice,
types::RpcPriceFeed, types::RpcPriceFeed,
types::RpcPriceFeedMetadata, types::RpcPriceFeedMetadata,
types::RpcPriceIdentifier, types::RpcPriceIdentifier,
types::EncodingType, types::EncodingType,
types::PriceUpdate, types::PriceUpdate,
types::BinaryPriceUpdate, types::BinaryPriceUpdate,
types::ParsedPriceUpdate, types::ParsedPriceUpdate,
types::RpcPriceFeedMetadataV2, types::RpcPriceFeedMetadataV2,
types::PriceFeedMetadata, types::PriceFeedMetadata,
types::AssetType types::AssetType
) )
), ),
tags( tags(
(name = "hermes", description = "Pyth Real-Time Pricing API") (name = "hermes", description = "Pyth Real-Time Pricing API")
) )
)] )]
struct ApiDoc; struct ApiDoc;