improve api_schema module structure

This commit is contained in:
Dietmar Maurer 2019-02-17 10:16:33 +01:00
parent dc9a007b11
commit ef2f2efbcc
27 changed files with 29 additions and 27 deletions

View File

@ -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;

View File

@ -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::*;

View File

@ -1,4 +1,4 @@
use crate::api_schema::schema::*;
use crate::api_schema::*;
use crate::api_schema::router::*;
use serde_json::{json};

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -1,4 +1,4 @@
use crate::api_schema::schema::*;
use crate::api_schema::*;
use crate::api_schema::router::*;
use serde_json::{json};

View File

@ -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;

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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};

View File

@ -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;

View File

@ -1,4 +1,4 @@
use crate::api_schema::schema::*;
use crate::api_schema::*;
use failure::*;
use std::collections::HashMap;

View File

@ -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;

View File

@ -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};

View File

@ -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::*;

View File

@ -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;

View File

@ -1,6 +1,6 @@
use failure::*;
use crate::api_schema::schema::*;
use crate::api_schema::*;
use std::sync::Arc;
use lazy_static::lazy_static;

View File

@ -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::*;

View File

@ -1,4 +1,4 @@
use crate::api_schema::schema::*;
use crate::api_schema::*;
use failure::*;

View File

@ -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,

View File

@ -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::*;

View File

@ -1,6 +1,6 @@
use failure::*;
use crate::api_schema::schema::*;
use crate::api_schema::*;
use crate::section_config::*;
use lazy_static::lazy_static;