Files
movies-diary/crates/adapters/http-axum/src/openapi/movies.rs

37 lines
1.0 KiB
Rust

use api_types::{
CastMemberDto, CrewMemberDto, DirectorStatDto, GenreDto, KeywordDto, MonthActivityDto,
MonthlyRatingDto, MovieDetailResponse, MovieDto, MovieProfileResponse, MovieStatsDto,
MoviesResponse, ReviewHistoryResponse, SocialFeedResponse, SocialReviewDto, UserTrendsDto,
};
use utoipa::OpenApi;
#[derive(OpenApi)]
#[openapi(
paths(
crate::api::movies::list_movies,
crate::api::movies::get_movie_detail,
crate::api::movies::get_review_history,
crate::api::movies::get_movie_profile,
crate::api::movies::sync_poster,
),
components(schemas(
MoviesResponse,
MovieDto,
MovieDetailResponse,
MovieStatsDto,
MovieProfileResponse,
GenreDto,
KeywordDto,
CastMemberDto,
CrewMemberDto,
ReviewHistoryResponse,
SocialFeedResponse,
SocialReviewDto,
MonthActivityDto,
MonthlyRatingDto,
DirectorStatDto,
UserTrendsDto,
))
)]
pub struct MoviesDoc;