Skip to main content

faucet_source_rest/
lib.rs

1//! # faucet-source-rest
2//!
3//! A declarative, config-driven REST API client with pluggable authentication,
4//! pagination, record transforms, schema inference, and incremental replication.
5
6pub mod auth;
7pub mod config;
8pub mod extract;
9pub mod pagination;
10pub mod retry;
11pub mod serde_helpers;
12pub mod stream;
13
14// Re-export core types so users don't need a separate faucet-core dependency.
15pub use faucet_core::{
16    FaucetError, RecordTransform, ReplicationMethod, Sink, Source, replication, schema, transform,
17};
18
19pub use auth::oauth2::DEFAULT_EXPIRY_RATIO;
20pub use auth::token_endpoint::DEFAULT_TOKEN_ENDPOINT_EXPIRY_RATIO;
21pub use auth::{Auth, ResponseValidator, fetch_oauth2_token, fetch_token_from_endpoint};
22pub use config::RestStreamConfig;
23pub use pagination::PaginationStyle;
24pub use stream::RestStream;