__init__.py 528 B

123456789101112131415161718
  1. # -*- coding: utf-8 -*-
  2. from fastapi import APIRouter
  3. from schemas.app.paper import QuestionList
  4. from .question import get_paper_questions
  5. router = APIRouter(tags=["作业/考试中心-客户端"])
  6. router.add_api_route("/papers/{pid}/questions",
  7. get_paper_questions,
  8. methods=["get"],
  9. response_model=QuestionList,
  10. response_model_exclude_none=True,
  11. summary="作业/考试中心 - 试卷试题列表")
  12. __all__ = [router]