Add types for responding to Authentication requests.

This commit is contained in:
Andreas Bergmeier 2025-01-17 22:09:09 +01:00
parent 23691eb746
commit c179017f96
3 changed files with 19 additions and 0 deletions

View File

@ -5,3 +5,5 @@
#[allow(dead_code)] #[allow(dead_code)]
pub mod schema; pub mod schema;
pub use schema::*; pub use schema::*;
mod openapi;

View File

@ -0,0 +1,16 @@
/// Code generated by ogen, converted via Copilot and rewritten manually.
pub mod openapi {
pub struct AuthenticationMethod(String);
pub struct BasicAuth {
pub username: String,
pub password: String,
}
pub mod responses {
pub struct Unauthorized {
pub www_authenticate: Option<String>,
}
}
}

1
api/src/openapi/mod.rs Normal file
View File

@ -0,0 +1 @@
mod authentication_rest;