feagi_api/lib.rs
1// Copyright 2025 Neuraville Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4// FEAGI REST API Layer
5//
6// This crate provides a unified, transport-agnostic API layer for FEAGI.
7// It supports both HTTP (Axum) and ZMQ transports using a shared endpoint layer.
8
9/// Crate version from Cargo.toml
10pub const VERSION: &str = env!("CARGO_PKG_VERSION");
11
12pub mod amalgamation;
13pub mod common;
14pub mod endpoints;
15#[cfg(feature = "http")]
16pub mod middleware;
17#[cfg(feature = "http")]
18pub mod openapi;
19pub mod security;
20pub mod transports;
21pub mod v1;
22pub mod v2;
23
24// Re-export commonly used types
25pub use common::{ApiError, ApiRequest, ApiResponse, EmptyResponse};
26pub use security::{AuthContext, Permission};