Function iqps_backend::routing::handlers::similar

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

Fetches all question papers that match one or more properties specified. course_name is compulsory.

§Request Query Parameters

  • course_code: The course code of the question paper. (required)
  • year (optional): The year of the question paper.
  • course_name (optional): The course name (exact).
  • semester (optional): The semester (autumn/spring)
  • exam (optional): The exam field (midsem/endsem/ct)