22 lines
570 B
Rust
22 lines
570 B
Rust
use api_types::{
|
|
AddToWatchlistRequest, WatchlistEntryDto, WatchlistResponse, WatchlistStatusResponse,
|
|
};
|
|
use utoipa::OpenApi;
|
|
|
|
#[derive(OpenApi)]
|
|
#[openapi(
|
|
paths(
|
|
crate::api::watchlist::get_watchlist_handler,
|
|
crate::api::watchlist::post_watchlist_add,
|
|
crate::api::watchlist::delete_watchlist_entry,
|
|
crate::api::watchlist::get_watchlist_status,
|
|
),
|
|
components(schemas(
|
|
WatchlistResponse,
|
|
WatchlistEntryDto,
|
|
AddToWatchlistRequest,
|
|
WatchlistStatusResponse,
|
|
))
|
|
)]
|
|
pub struct WatchlistDoc;
|