| 1 | use utoipa::{openapi, OpenApi}; |
| 2 | |
| 3 | fn api_info() -> openapi::Info { |
| 4 | openapi::InfoBuilder::new() |
| 5 | .title("Cosdata API") |
| 6 | .version(env!("CARGO_PKG_VERSION")) |
| 7 | .description(Some("Cosdata Vector Database API\n\nAPI description for Cosdata vector search engine.\n\nThis document describes CRUD and search operations on collections of points (vectors with payload).")) |
| 8 | .contact(Some( |
| 9 | openapi::ContactBuilder::new() |
| 10 | .email(Some("info@cosdata.io")) |
| 11 | .url(Some("https://cosdata.io")) |
| 12 | .build(), |
| 13 | )) |
| 14 | .license(Some( |
| 15 | openapi::LicenseBuilder::new() |
| 16 | .name("Apache 2.0") |
| 17 | .url(Some("https://www.apache.org/licenses/LICENSE-2.0")) |
| 18 | .build(), |
| 19 | )) |
| 20 | .build() |
| 21 | } |
| 22 | |
| 23 | /// API documentation for authentication endpoints |
| 24 | #[derive(OpenApi)] |