oioioi.contests.api

Module Contents

Classes

CanEnterContest

A base class from which all permission classes should inherit.

GetProblemIdView

Intentionally simple parent class for all views. Only implements

SubmitSolutionView

Intentionally simple parent class for all views. Only implements

SubmitContestSolutionView

Intentionally simple parent class for all views. Only implements

SubmitProblemsetSolutionView

Intentionally simple parent class for all views. Only implements

class oioioi.contests.api.CanEnterContest[source]

Bases: rest_framework.permissions.BasePermission

A base class from which all permission classes should inherit.

has_object_permission(request, view, obj)[source]

Return True if permission is granted, False otherwise.

class oioioi.contests.api.GetProblemIdView(**kwargs)[source]

Bases: rest_framework.views.APIView

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

permission_classes[source]
schema[source]
get(request, contest_id, problem_short_name)[source]

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.

class oioioi.contests.api.SubmitSolutionView(**kwargs)[source]

Bases: rest_framework.views.APIView

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

permission_classes[source]
parser_classes[source]
get_problem_instance(**kwargs)[source]
post(request, **kwargs)[source]

This endpoint allows you to submit solution for selected problem.

class oioioi.contests.api.SubmitContestSolutionView(**kwargs)[source]

Bases: SubmitSolutionView

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

permission_classes[source]
schema[source]
get_problem_instance(contest_name, problem_short_name)[source]
class oioioi.contests.api.SubmitProblemsetSolutionView(**kwargs)[source]

Bases: SubmitSolutionView

Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.

schema[source]
get_problem_instance(problem_site_key)[source]