async fn search_pages_with_words(
course_id: Path<Uuid>,
payload: Json<SearchRequest>,
pool: Data<PgPool>,
) -> ControllerResult<Json<Vec<PageSearchResult>>>
Expand description
POST /api/v0/course-material/courses/:course_id/search-pages-with-words
- Returns a list of pages given a search query.
Provided words can appear in any order in the source document.
ยงExample
Request:
POST /api/v0/course-material/courses/1a68e8b0-d151-4c0e-9307-bb154e9d2be1/search-pages-with-words HTTP/1.1
Content-Type: application/json
{
"query": "Everything"
}