:py:mod:`oioioi.contests.api` ============================= .. py:module:: oioioi.contests.api Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.contests.api.CanEnterContest oioioi.contests.api.GetProblemIdView oioioi.contests.api.SubmitSolutionView oioioi.contests.api.SubmitContestSolutionView oioioi.contests.api.SubmitProblemsetSolutionView .. py:class:: CanEnterContest Bases: :py:obj:`rest_framework.permissions.BasePermission` A base class from which all permission classes should inherit. .. py:method:: has_object_permission(request, view, obj) Return `True` if permission is granted, `False` otherwise. .. py:class:: GetProblemIdView(**kwargs) Bases: :py:obj:`rest_framework.views.APIView` Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. .. py:attribute:: permission_classes .. py:attribute:: schema .. py:method:: get(request, contest_id, problem_short_name) This endpoint allows you to get id of the particular problem along with id of its corresponding problem's instance, given id of the certain contest and short name of that problem. .. py:class:: SubmitSolutionView(**kwargs) Bases: :py:obj:`rest_framework.views.APIView` Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. .. py:attribute:: permission_classes .. py:attribute:: parser_classes .. py:method:: get_problem_instance(**kwargs) .. py:method:: post(request, **kwargs) This endpoint allows you to submit solution for selected problem. .. py:class:: SubmitContestSolutionView(**kwargs) Bases: :py:obj:`SubmitSolutionView` Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. .. py:attribute:: permission_classes .. py:attribute:: schema .. py:method:: get_problem_instance(contest_name, problem_short_name) .. py:class:: SubmitProblemsetSolutionView(**kwargs) Bases: :py:obj:`SubmitSolutionView` Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking. .. py:attribute:: schema .. py:method:: get_problem_instance(problem_site_key)