use export::rest::NoData; use models::users::user_notifications::NotificationType; use utoipa::OpenApi; use crate::handlers; use crate::handlers::accept_agreement::AcceptAgreementCmd; use crate::handlers::me::MeResp; use crate::handlers::unread_notifications_count::UnreadCountResp; use crate::services::agreements::AcceptAgreementResp; use crate::services::notifications::NotificationDto; use crate::services::preferences::{UpdatePreferencesCmd, UserPreferencesDto}; use crate::services::profile::{ProfileDto, UpdateProfileCmd, UserMeDto}; use crate::services::reports::{CreateReportCmd, ReportDto}; use crate::share::types::{AgreementDoc, UserPublic}; #[derive(OpenApi)] #[openapi( info(title = "gitdata auth api", version = "1.0"), paths( handlers::accept_agreement::accept_agreement, handlers::create_report::create_report, handlers::delete_notification::delete_notification, handlers::get_preferences::get_preferences, handlers::get_user::get_user, handlers::users::list_users_batch, handlers::users::get_user_by_username, handlers::users::update_username, handlers::list_agreements::list_agreements, handlers::list_notifications::list_notifications, handlers::mark_notifications_read::mark_notifications_read, handlers::me::me, handlers::unread_notifications_count::unread_notifications_count, handlers::update_preferences::update_preferences, handlers::update_profile::update_profile, ), components(schemas( export::pagination::PageQuery, export::pagination::Page, handlers::mark_notifications_read::MarkNotificationsReadCmd, handlers::mark_notifications_read::MarkedCountResp, NoData, UserPublic, AgreementDoc, UserMeDto, ProfileDto, UpdateProfileCmd, UserPreferencesDto, UpdatePreferencesCmd, AcceptAgreementCmd, AcceptAgreementResp, MeResp, NotificationDto, CreateReportCmd, ReportDto, UnreadCountResp, NotificationType, )) )] pub struct AuthApiDoc;