oioioi.problems.api
¶
Module Contents¶
Classes¶
Endpoint that given package_id returns package_status. |
|
Intentionally simple parent class for all views. Only implements |
|
Endpoint allowing for uploading problem packages. |
|
Endpoint allowing for reuploading problem packages. |
Functions¶
|
- class oioioi.problems.api.PackageUploadQueryView(**kwargs)[source]¶
Bases:
rest_framework.views.APIView
Endpoint that given package_id returns package_status. Possible values for the package_status are: - “OK”: if the package was successfully uploaded (if so, the problem_id is returned, if one is available), - “ERR”: if the package upload failed (if so, info describing an error is returned, if one is available), - “?”: if the package upload is pending.
- class oioioi.problems.api.BasePackageUploadView(**kwargs)[source]¶
Bases:
rest_framework.views.APIView
Intentionally simple parent class for all views. Only implements dispatch-by-method and simple sanity checking.
- class oioioi.problems.api.PackageUploadView(**kwargs)[source]¶
Bases:
BasePackageUploadView
Endpoint allowing for uploading problem packages. Each uploaded problem has to be bound to some round and contest.