feat: MovieDto enrichment, movie detail page, PWA, watchlist, watchlist federation
This commit is contained in:
@@ -5,6 +5,7 @@ mod movies;
|
||||
mod search;
|
||||
mod social;
|
||||
mod users;
|
||||
mod watchlist;
|
||||
|
||||
use axum::Router;
|
||||
use utoipa::{
|
||||
@@ -38,6 +39,7 @@ fn build() -> utoipa::openapi::OpenApi {
|
||||
api.merge(users::UsersDoc::openapi());
|
||||
api.merge(import::ImportDoc::openapi());
|
||||
api.merge(search::SearchDoc::openapi());
|
||||
api.merge(watchlist::WatchlistDoc::openapi());
|
||||
#[cfg(feature = "federation")]
|
||||
api.merge(social::SocialDoc::openapi());
|
||||
SecurityAddon.modify(&mut api);
|
||||
|
||||
19
crates/presentation/src/openapi/watchlist.rs
Normal file
19
crates/presentation/src/openapi/watchlist.rs
Normal file
@@ -0,0 +1,19 @@
|
||||
use api_types::{AddToWatchlistRequest, WatchlistEntryDto, WatchlistResponse, WatchlistStatusResponse};
|
||||
use utoipa::OpenApi;
|
||||
|
||||
#[derive(OpenApi)]
|
||||
#[openapi(
|
||||
paths(
|
||||
crate::handlers::api::get_watchlist_handler,
|
||||
crate::handlers::api::post_watchlist_add,
|
||||
crate::handlers::api::delete_watchlist_entry,
|
||||
crate::handlers::api::get_watchlist_status,
|
||||
),
|
||||
components(schemas(
|
||||
WatchlistResponse,
|
||||
WatchlistEntryDto,
|
||||
AddToWatchlistRequest,
|
||||
WatchlistStatusResponse,
|
||||
))
|
||||
)]
|
||||
pub struct WatchlistDoc;
|
||||
Reference in New Issue
Block a user