Function iqps_backend::routing::handlers::search

source ·
pub async fn search(
    __arg0: State<RouterState>,
    __arg1: Query<HashMap<String, String>>,
) -> Result<(StatusCode, BackendResponse<Vec<SearchQP>>), AppError>
Expand description

Searches for question papers given a query and an optional exam parameter.

§Request Query Parameters

  • query: The query string to search in the question papers (searches course name or code)
  • exam (optional): A filter for the question paper by the exam field.