diff --git a/api/src/lib.rs b/api/src/lib.rs index 5cb7041..4a38ac9 100644 --- a/api/src/lib.rs +++ b/api/src/lib.rs @@ -5,3 +5,5 @@ #[allow(dead_code)] pub mod schema; pub use schema::*; + +mod openapi; diff --git a/api/src/openapi/authentication_rest.rs b/api/src/openapi/authentication_rest.rs new file mode 100644 index 0000000..50cb9b9 --- /dev/null +++ b/api/src/openapi/authentication_rest.rs @@ -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, + } + } +} diff --git a/api/src/openapi/mod.rs b/api/src/openapi/mod.rs new file mode 100644 index 0000000..ac7fde7 --- /dev/null +++ b/api/src/openapi/mod.rs @@ -0,0 +1 @@ +mod authentication_rest;