Skip to main content

comdirect_rest_api/api/
mod.rs

1pub mod brokerage;
2
3pub const BASE_URL: &str = "https://api.comdirect.de/api";
4
5/// Extracts the API path from a module path (e.g., "crate::api::brokerage::v3" -> "brokerage/v3")
6pub fn extract_api_path(module_path: &str) -> String {
7    if let Some(pos) = module_path.find("::api::") {
8        module_path[pos + 7..].replace("::", "/")
9    } else {
10        module_path.replace("::", "/")
11    }
12}