]> git.proxmox.com Git - proxmox-backup.git/blame - src/api_schema.rs
api/compat: drop api_handler submodule
[proxmox-backup.git] / src / api_schema.rs
CommitLineData
dc9a007b
DM
1//! API definition helper
2//!
3//! This module contains helper classes to define REST APIs. Method
4//! parameters and return types are described using a
5//! [Schema](schema/enum.Schema.html).
6//!
7//! The [Router](router/struct.Router.html) is used to define a
8//! hierarchy of API entries, and provides ways to find an API
9//! definition by path.
10
255f378a 11//pub mod registry;
dc9a007b 12pub mod config;
339ddfcb 13pub mod format;
255f378a 14
3d482025
WB
15/*
16 * --------------------------------------------------------------------------------------------
17 * Everything below is a compatibility layer to support building the current code until api2.rs
18 * and the api2/ directory have been updated to the proxmox::api crate:
19 * --------------------------------------------------------------------------------------------
20 */
21
22pub use proxmox::api::schema::*;
23pub use proxmox::api::*;
24
3d482025
WB
25pub mod router {
26 pub use super::{ApiHandler, ApiMethod, HttpError, RpcEnvironment, RpcEnvironmentType};
27 pub use proxmox::api::router::*;
28}