cognee-http-server 0.1.0-rc.1

HTTP server exposing the cognee add/cognify/search pipeline (single-user, no-auth).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! DTOs for the users-by-email router.

use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
use uuid::Uuid;

/// Request body for `POST /api/v1/users/get-user-id`.
#[derive(Debug, Deserialize, ToSchema)]
pub struct GetUserIdPayloadDTO {
    pub email: String,
}

/// Response body for `POST /api/v1/users/get-user-id` on success.
#[derive(Debug, Serialize, ToSchema)]
pub struct GetUserIdResponseDTO {
    pub user_id: Uuid,
}