diff options
author | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-26 19:11:24 +0100 |
---|---|---|
committer | niliara-edu <nil.jimeno@estudiant.fjaverianas.com> | 2025-01-26 19:11:24 +0100 |
commit | c622eab39ac7dd9f794b5d60eb937e29c9b3bd6e (patch) | |
tree | a75067a661250a4ed74096929083948f65c01fdb /src/database/mod.rs | |
parent | 5891af7e8c1411029fe1ad9c6d3182f88bcf3dfd (diff) |
add api documentation
Diffstat (limited to 'src/database/mod.rs')
-rw-r--r-- | src/database/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/database/mod.rs b/src/database/mod.rs index 884a597..045cf23 100644 --- a/src/database/mod.rs +++ b/src/database/mod.rs @@ -6,10 +6,12 @@ pub mod user; use serde::{Deserialize, Serialize}; use sqlx::mysql::{MySqlPool, MySqlPoolOptions}; +use utoipa::ToSchema; use std::env; -#[derive(Serialize, Deserialize)] +#[derive(Serialize, Deserialize, ToSchema)] pub struct Delete { + #[schema(example = "1", required = true)] pub id: Option<String>, } |