Skip to main content

handle_path

Function handle_path 

Source
pub async fn handle_path(
    req: HttpRequest,
    body: String,
    state: Data<AppState>,
) -> Result<HttpResponse, HaystackError>
Expand description

Finds the shortest path between two entities.

§Request Grid Columns

ColumnKindDescription
fromRefSource entity
toRefDestination entity

§Response Grid Columns

All entity tags plus pathIndex (Number, 0-based position in path).