drasi_bootstrap_http/lib.rs
1// Copyright 2025 The Drasi Authors.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![allow(unexpected_cfgs)]
16
17//! HTTP bootstrap plugin for Drasi
18//!
19//! This plugin fetches initial state from REST APIs to populate graph queries.
20//! It supports multiple endpoints, various authentication methods, pagination
21//! strategies, and Handlebars-based response-to-element mapping.
22
23pub mod auth;
24pub mod config;
25pub mod content_parser;
26pub mod descriptor;
27pub mod pagination;
28pub mod provider;
29pub mod response;
30pub mod template_engine;
31
32pub use config::HttpBootstrapConfig;
33pub use provider::HttpBootstrapProvider;
34
35/// Dynamic plugin entry point.
36#[cfg(feature = "dynamic-plugin")]
37drasi_plugin_sdk::export_plugin!(
38 plugin_id = "http-bootstrap",
39 core_version = env!("CARGO_PKG_VERSION"),
40 lib_version = env!("CARGO_PKG_VERSION"),
41 plugin_version = env!("CARGO_PKG_VERSION"),
42 source_descriptors = [],
43 reaction_descriptors = [],
44 bootstrap_descriptors = [descriptor::HttpBootstrapDescriptor],
45);