improve api_schema module structure
This commit is contained in:
parent
dc9a007b11
commit
ef2f2efbcc
|
@ -1,6 +1,6 @@
|
|||
//use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json};
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use crate::tools::ticket::*;
|
||||
use crate::auth_helpers::*;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
//use crate::server::rest::*;
|
||||
use serde_json::{json, Value};
|
||||
|
|
|
@ -4,7 +4,7 @@ use crate::tools;
|
|||
use crate::tools::wrapped_reader_stream::*;
|
||||
use crate::backup::*;
|
||||
//use crate::server::rest::*;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
|
||||
use chrono::{Utc, TimeZone};
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//use failure::*;
|
||||
//use std::collections::HashMap;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
//use std::collections::HashMap;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use crate::backup::*;
|
||||
use serde_json::{json, Value};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json};
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use failure::*;
|
|||
|
||||
use crate::tools;
|
||||
use crate::api2::*;
|
||||
//use crate::api_schema::schema::*;
|
||||
//use crate::api_schema::*;
|
||||
//use crate::api_schema::router::*;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
|
||||
//use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use serde_json::{json, Value};
|
||||
|
||||
|
|
|
@ -9,7 +9,9 @@
|
|||
//! definition by path.
|
||||
|
||||
#[macro_use]
|
||||
pub mod schema;
|
||||
mod schema;
|
||||
pub use schema::*;
|
||||
|
||||
pub mod registry;
|
||||
#[macro_use]
|
||||
pub mod router;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
|
||||
use failure::*;
|
||||
use std::collections::HashMap;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use serde_json::{Value};
|
||||
use std::collections::HashMap;
|
||||
use std::sync::Arc;
|
||||
|
|
|
@ -4,7 +4,7 @@ use failure::*;
|
|||
|
||||
use proxmox_backup::tools;
|
||||
use proxmox_backup::cli::command::*;
|
||||
use proxmox_backup::api_schema::schema::*;
|
||||
use proxmox_backup::api_schema::*;
|
||||
use proxmox_backup::api_schema::router::*;
|
||||
|
||||
use serde_json::{Value};
|
||||
|
|
|
@ -5,7 +5,7 @@ use failure::*;
|
|||
|
||||
use proxmox_backup::tools;
|
||||
use proxmox_backup::cli::command::*;
|
||||
use proxmox_backup::api_schema::schema::*;
|
||||
use proxmox_backup::api_schema::*;
|
||||
use proxmox_backup::api_schema::router::*;
|
||||
use proxmox_backup::client::*;
|
||||
//use proxmox_backup::backup::chunk_store::*;
|
||||
|
|
|
@ -4,7 +4,7 @@ use std::collections::HashSet;
|
|||
|
||||
use serde_json::Value;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
//use crate::api_schema::config::*;
|
||||
use super::environment::CliEnvironment;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
|
||||
use std::sync::Arc;
|
||||
use lazy_static::lazy_static;
|
||||
|
|
|
@ -5,7 +5,7 @@ use std::io::Read;
|
|||
|
||||
//use std::sync::Arc;
|
||||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
|
||||
use crate::section_config::*;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
|
||||
use failure::*;
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ use std::collections::VecDeque;
|
|||
use serde_json::{json, Value};
|
||||
|
||||
use std::sync::Arc;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
|
||||
pub struct SectionConfigPlugin {
|
||||
type_name: String,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
use crate::tools;
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::api_schema::router::*;
|
||||
use crate::api_schema::config::*;
|
||||
use crate::auth_helpers::*;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use failure::*;
|
||||
|
||||
use crate::api_schema::schema::*;
|
||||
use crate::api_schema::*;
|
||||
use crate::section_config::*;
|
||||
|
||||
use lazy_static::lazy_static;
|
||||
|
|
Loading…
Reference in New Issue