{ "components": { "schemas": { "ArtifactReference": { "additionalProperties": false, "properties": { "bytes": { "maximum": 67108864.0, "minimum": 0.0, "title": "Bytes", "type": "integer" }, "digest": { "maxLength": 64, "minLength": 64, "pattern": "^[0-9a-f]{64}$", "title": "Digest", "type": "string" } }, "required": [ "digest", "bytes" ], "title": "ArtifactReference", "type": "object" }, "CancellationAccepted": { "additionalProperties": false, "properties": { "accepted": { "const": true, "default": true, "title": "Accepted", "type": "boolean" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" } }, "required": [ "submission_id", "evaluation_id" ], "title": "CancellationAccepted", "type": "object" }, "CompilationStatus": { "enum": [ "succeeded", "compilation_error", "compilation_limit", "cancelled", "system_error" ], "title": "CompilationStatus", "type": "string" }, "CreateSubmission": { "additionalProperties": false, "properties": { "idempotency_key": { "format": "uuid", "title": "Idempotency Key", "type": "string" }, "language": { "$ref": "#/components/schemas/Language-Input" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "source": { "maxLength": 262144, "minLength": 1, "title": "Source", "type": "string" } }, "required": [ "problem_version_id", "language", "idempotency_key", "source" ], "title": "CreateSubmission", "type": "object" }, "CurrentUser": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "title": "Id", "type": "string" }, "username": { "title": "Username", "type": "string" } }, "required": [ "id", "username" ], "title": "CurrentUser", "type": "object" }, "FailureCode": { "enum": [ "artifact_unavailable", "sandbox_unavailable", "cleanup_failed", "lease_lost", "job_deadline" ], "title": "FailureCode", "type": "string" }, "HTTPValidationError": { "properties": { "detail": { "items": { "$ref": "#/components/schemas/ValidationError" }, "title": "Detail", "type": "array" } }, "title": "HTTPValidationError", "type": "object" }, "HealthResponse": { "additionalProperties": false, "properties": { "service": { "const": "platform", "title": "Service", "type": "string" }, "status": { "const": "ok", "title": "Status", "type": "string" }, "version": { "title": "Version", "type": "string" } }, "required": [ "status", "service", "version" ], "title": "HealthResponse", "type": "object" }, "JobManifest": { "additionalProperties": false, "properties": { "cases": { "items": { "$ref": "#/components/schemas/TestCase" }, "maxItems": 256, "minItems": 1, "title": "Cases", "type": "array" }, "comparison": { "const": "exact_bytes", "title": "Comparison", "type": "string" }, "compile_limits": { "$ref": "#/components/schemas/RunLimits" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "job_wall_time_us": { "maximum": 3600000000.0, "minimum": 1000.0, "title": "Job Wall Time Us", "type": "integer" }, "kind": { "const": "judge.manifest", "title": "Kind", "type": "string" }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging__Language" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "run_limits": { "$ref": "#/components/schemas/RunLimits" }, "schema_version": { "const": 1, "title": "Schema Version", "type": "integer" }, "source": { "$ref": "#/components/schemas/ArtifactReference" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" }, "toolchain": { "$ref": "#/components/schemas/Toolchain" } }, "required": [ "schema_version", "kind", "evaluation_id", "submission_id", "problem_version_id", "language", "toolchain", "source", "cases", "comparison", "compile_limits", "run_limits", "job_wall_time_us" ], "title": "JobManifest", "type": "object" }, "Language-Input": { "enum": [ "c17", "cpp20", "python313", "java21" ], "title": "Language", "type": "string" }, "LoginRequest": { "additionalProperties": false, "properties": { "password": { "format": "password", "maxLength": 128, "minLength": 12, "title": "Password", "type": "string", "writeOnly": true }, "username": { "pattern": "^[a-z0-9_]{3,24}$", "title": "Username", "type": "string" } }, "required": [ "username", "password" ], "title": "LoginRequest", "type": "object" }, "LoginResponse": { "additionalProperties": false, "properties": { "csrf_token": { "maxLength": 64, "minLength": 64, "pattern": "^[0-9a-f]{64}$", "title": "Csrf Token", "type": "string" }, "expires_at": { "format": "date-time", "title": "Expires At", "type": "string" }, "user": { "$ref": "#/components/schemas/CurrentUser" } }, "required": [ "user", "expires_at", "csrf_token" ], "title": "LoginResponse", "type": "object" }, "PerformanceBucket": { "additionalProperties": false, "properties": { "count": { "maximum": 10000.0, "minimum": 0.0, "title": "Count", "type": "integer" }, "end": { "maxLength": 19, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "title": "End", "type": "string" }, "start": { "maxLength": 19, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "title": "Start", "type": "string" }, "upper_inclusive": { "title": "Upper Inclusive", "type": "boolean" } }, "required": [ "start", "end", "upper_inclusive", "count" ], "title": "PerformanceBucket", "type": "object" }, "PerformanceMetric": { "additionalProperties": false, "properties": { "available": { "title": "Available", "type": "boolean" }, "buckets": { "items": { "$ref": "#/components/schemas/PerformanceBucket" }, "maxItems": 64, "title": "Buckets", "type": "array" }, "current": { "anyOf": [ { "maxLength": 19, "minLength": 1, "pattern": "^(0|[1-9][0-9]*)$", "type": "string" }, { "type": "null" } ], "title": "Current" }, "oldest_sample_at": { "anyOf": [ { "format": "date-time", "type": "string" }, { "type": "null" } ], "title": "Oldest Sample At" }, "reason": { "anyOf": [ { "enum": [ "not_accepted", "measurement_missing", "environment_unverified", "insufficient_samples" ], "type": "string" }, { "type": "null" } ], "title": "Reason" }, "sample_count": { "maximum": 10000.0, "minimum": 0.0, "title": "Sample Count", "type": "integer" }, "strictly_slower_count": { "anyOf": [ { "maximum": 10000.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Strictly Slower Count" }, "tied_count": { "anyOf": [ { "maximum": 10000.0, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Tied Count" }, "unit": { "enum": [ "cpu_microseconds", "bytes" ], "title": "Unit", "type": "string" }, "window_truncated": { "title": "Window Truncated", "type": "boolean" } }, "required": [ "unit", "current", "available", "reason", "sample_count", "window_truncated", "oldest_sample_at", "strictly_slower_count", "tied_count", "buckets" ], "title": "PerformanceMetric", "type": "object" }, "PreparationKind": { "enum": [ "compile", "syntax_check" ], "title": "PreparationKind", "type": "string" }, "ProblemDetail": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "title": "Id", "type": "string" }, "language_configurations": { "default": [], "items": { "$ref": "#/components/schemas/PublicLanguageConfiguration" }, "title": "Language Configurations", "type": "array" }, "languages": { "items": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "title": "Languages", "type": "array" }, "revision": { "title": "Revision", "type": "integer" }, "run_limits": { "anyOf": [ { "$ref": "#/components/schemas/RunLimits" }, { "type": "null" } ] }, "samples": { "items": { "$ref": "#/components/schemas/PublicSample" }, "title": "Samples", "type": "array" }, "slug": { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$", "title": "Slug", "type": "string" }, "statement": { "title": "Statement", "type": "string" }, "title": { "title": "Title", "type": "string" }, "version_id": { "format": "uuid", "title": "Version Id", "type": "string" } }, "required": [ "id", "slug", "version_id", "revision", "title", "languages", "statement", "samples", "run_limits" ], "title": "ProblemDetail", "type": "object" }, "ProblemPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/ProblemSummary" }, "title": "Items", "type": "array" }, "next_after": { "anyOf": [ { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$", "type": "string" }, { "type": "null" } ], "title": "Next After" } }, "required": [ "items", "next_after" ], "title": "ProblemPage", "type": "object" }, "ProblemSummary": { "additionalProperties": false, "properties": { "id": { "format": "uuid", "title": "Id", "type": "string" }, "languages": { "items": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "title": "Languages", "type": "array" }, "revision": { "title": "Revision", "type": "integer" }, "slug": { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$", "title": "Slug", "type": "string" }, "title": { "title": "Title", "type": "string" }, "version_id": { "format": "uuid", "title": "Version Id", "type": "string" } }, "required": [ "id", "slug", "version_id", "revision", "title", "languages" ], "title": "ProblemSummary", "type": "object" }, "PublicCaseResult": { "additionalProperties": false, "properties": { "cpu_time_us": { "anyOf": [ { "maximum": 9.223372036854776e+18, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Cpu Time Us" }, "memory_peak_bytes": { "anyOf": [ { "maximum": 9.223372036854776e+18, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Memory Peak Bytes" }, "position": { "title": "Position", "type": "integer" }, "verdict": { "$ref": "#/components/schemas/Verdict" } }, "required": [ "position", "verdict", "cpu_time_us", "memory_peak_bytes" ], "title": "PublicCaseResult", "type": "object" }, "PublicJudgement": { "additionalProperties": false, "properties": { "cases": { "items": { "$ref": "#/components/schemas/PublicCaseResult" }, "title": "Cases", "type": "array" }, "cleanup_complete": { "title": "Cleanup Complete", "type": "boolean" }, "compilation_status": { "$ref": "#/components/schemas/CompilationStatus" }, "cpu_time_us": { "anyOf": [ { "maximum": 9.223372036854776e+18, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Cpu Time Us" }, "diagnostics": { "maxLength": 65536, "title": "Diagnostics", "type": "string" }, "diagnostics_truncated": { "title": "Diagnostics Truncated", "type": "boolean" }, "memory_peak_bytes": { "anyOf": [ { "maximum": 9.223372036854776e+18, "minimum": 0.0, "type": "integer" }, { "type": "null" } ], "title": "Memory Peak Bytes" } }, "required": [ "compilation_status", "diagnostics", "diagnostics_truncated", "cpu_time_us", "memory_peak_bytes", "cleanup_complete", "cases" ], "title": "PublicJudgement", "type": "object" }, "PublicLanguageConfiguration": { "additionalProperties": false, "properties": { "compile_limits": { "$ref": "#/components/schemas/RunLimits" }, "entrypoint": { "title": "Entrypoint", "type": "string" }, "job_wall_time_us": { "title": "Job Wall Time Us", "type": "integer" }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "preparation_kind": { "$ref": "#/components/schemas/PreparationKind" }, "run_limits": { "$ref": "#/components/schemas/RunLimits" }, "runtime_version": { "title": "Runtime Version", "type": "string" }, "source_name": { "title": "Source Name", "type": "string" } }, "required": [ "language", "runtime_version", "source_name", "entrypoint", "preparation_kind", "compile_limits", "run_limits", "job_wall_time_us" ], "title": "PublicLanguageConfiguration", "type": "object" }, "PublicSample": { "additionalProperties": false, "properties": { "encoding": { "const": "base64", "default": "base64", "title": "Encoding", "type": "string" }, "input": { "maxLength": 87384, "title": "Input", "type": "string" }, "output": { "maxLength": 87384, "title": "Output", "type": "string" } }, "required": [ "input", "output" ], "title": "PublicSample", "type": "object" }, "RunLimits": { "additionalProperties": false, "properties": { "cpu_time_us": { "maximum": 60000000.0, "minimum": 1000.0, "title": "Cpu Time Us", "type": "integer" }, "file_bytes": { "maximum": 67108864.0, "minimum": 1.0, "title": "File Bytes", "type": "integer" }, "memory_bytes": { "maximum": 2147483648.0, "minimum": 1.0, "title": "Memory Bytes", "type": "integer" }, "open_files": { "maximum": 1024.0, "minimum": 3.0, "title": "Open Files", "type": "integer" }, "processes": { "maximum": 128.0, "minimum": 1.0, "title": "Processes", "type": "integer" }, "stack_bytes": { "maximum": 268435456.0, "minimum": 1.0, "title": "Stack Bytes", "type": "integer" }, "stderr_bytes": { "maximum": 16777216.0, "minimum": 1.0, "title": "Stderr Bytes", "type": "integer" }, "stdout_bytes": { "maximum": 16777216.0, "minimum": 1.0, "title": "Stdout Bytes", "type": "integer" }, "wall_time_us": { "maximum": 120000000.0, "minimum": 1000.0, "title": "Wall Time Us", "type": "integer" }, "workdir_bytes": { "maximum": 268435456.0, "minimum": 1.0, "title": "Workdir Bytes", "type": "integer" } }, "required": [ "cpu_time_us", "wall_time_us", "memory_bytes", "stack_bytes", "processes", "open_files", "stdout_bytes", "stderr_bytes", "file_bytes", "workdir_bytes" ], "title": "RunLimits", "type": "object" }, "SubmissionCreated": { "additionalProperties": false, "properties": { "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "state": { "enum": [ "queued", "claimed", "compiling", "running", "cancelling", "finished", "cancelled", "failed" ], "title": "State", "type": "string" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" } }, "required": [ "submission_id", "evaluation_id", "problem_version_id", "language", "state", "created_at" ], "title": "SubmissionCreated", "type": "object" }, "SubmissionDetail": { "additionalProperties": false, "properties": { "attempts": { "title": "Attempts", "type": "integer" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "failure_code": { "anyOf": [ { "$ref": "#/components/schemas/FailureCode" }, { "type": "null" } ] }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "result": { "anyOf": [ { "$ref": "#/components/schemas/PublicJudgement" }, { "type": "null" } ] }, "state": { "enum": [ "queued", "claimed", "compiling", "running", "cancelling", "finished", "cancelled", "failed" ], "title": "State", "type": "string" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "verdict": { "anyOf": [ { "$ref": "#/components/schemas/Verdict" }, { "type": "null" } ] } }, "required": [ "submission_id", "evaluation_id", "problem_version_id", "language", "state", "created_at", "updated_at", "attempts", "verdict", "failure_code", "result" ], "title": "SubmissionDetail", "type": "object" }, "SubmissionPage": { "additionalProperties": false, "properties": { "items": { "items": { "$ref": "#/components/schemas/SubmissionSummary" }, "title": "Items", "type": "array" }, "next_after": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "title": "Next After" } }, "required": [ "items", "next_after" ], "title": "SubmissionPage", "type": "object" }, "SubmissionPerformance": { "additionalProperties": false, "properties": { "as_of": { "format": "date-time", "title": "As Of", "type": "string" }, "comparison_group": { "anyOf": [ { "maxLength": 64, "minLength": 64, "pattern": "^[0-9a-f]{64}$", "type": "string" }, { "type": "null" } ], "title": "Comparison Group" }, "cpu": { "$ref": "#/components/schemas/PerformanceMetric" }, "kind": { "const": "judge.performance", "default": "judge.performance", "title": "Kind", "type": "string" }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "memory": { "$ref": "#/components/schemas/PerformanceMetric" }, "minimum_samples": { "const": 5, "default": 5, "title": "Minimum Samples", "type": "integer" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "schema_version": { "const": 1, "default": 1, "title": "Schema Version", "type": "integer" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" }, "window_limit": { "const": 10000, "default": 10000, "title": "Window Limit", "type": "integer" } }, "required": [ "submission_id", "problem_version_id", "language", "as_of", "comparison_group", "cpu", "memory" ], "title": "SubmissionPerformance", "type": "object" }, "SubmissionSource": { "additionalProperties": false, "properties": { "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "source": { "maxLength": 262144, "title": "Source", "type": "string" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" } }, "required": [ "submission_id", "language", "source" ], "title": "SubmissionSource", "type": "object" }, "SubmissionSummary": { "additionalProperties": false, "properties": { "attempts": { "title": "Attempts", "type": "integer" }, "created_at": { "format": "date-time", "title": "Created At", "type": "string" }, "evaluation_id": { "format": "uuid", "title": "Evaluation Id", "type": "string" }, "failure_code": { "anyOf": [ { "$ref": "#/components/schemas/FailureCode" }, { "type": "null" } ] }, "language": { "$ref": "#/components/schemas/kf_oj__contracts__judging_v2__Language" }, "problem_version_id": { "format": "uuid", "title": "Problem Version Id", "type": "string" }, "state": { "enum": [ "queued", "claimed", "compiling", "running", "cancelling", "finished", "cancelled", "failed" ], "title": "State", "type": "string" }, "submission_id": { "format": "uuid", "title": "Submission Id", "type": "string" }, "updated_at": { "format": "date-time", "title": "Updated At", "type": "string" }, "verdict": { "anyOf": [ { "$ref": "#/components/schemas/Verdict" }, { "type": "null" } ] } }, "required": [ "submission_id", "evaluation_id", "problem_version_id", "language", "state", "created_at", "updated_at", "attempts", "verdict", "failure_code" ], "title": "SubmissionSummary", "type": "object" }, "TestCase": { "additionalProperties": false, "properties": { "case_id": { "format": "uuid", "title": "Case Id", "type": "string" }, "expected": { "$ref": "#/components/schemas/ArtifactReference" }, "input": { "$ref": "#/components/schemas/ArtifactReference" } }, "required": [ "case_id", "input", "expected" ], "title": "TestCase", "type": "object" }, "Toolchain": { "additionalProperties": false, "properties": { "image_kind": { "const": "linux_gnu_cxx_x86_64_v1", "title": "Image Kind", "type": "string" }, "image_revision": { "maximum": 4294967295.0, "minimum": 1.0, "title": "Image Revision", "type": "integer" }, "toolchain_id": { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$", "title": "Toolchain Id", "type": "string" } }, "required": [ "toolchain_id", "image_kind", "image_revision" ], "title": "Toolchain", "type": "object" }, "ValidationError": { "properties": { "ctx": { "title": "Context", "type": "object" }, "input": { "title": "Input" }, "loc": { "items": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] }, "title": "Location", "type": "array" }, "msg": { "title": "Message", "type": "string" }, "type": { "title": "Error Type", "type": "string" } }, "required": [ "loc", "msg", "type" ], "title": "ValidationError", "type": "object" }, "Verdict": { "enum": [ "accepted", "wrong_answer", "compilation_error", "runtime_error", "time_limit_exceeded", "memory_limit_exceeded", "output_limit_exceeded", "cancelled", "system_error" ], "title": "Verdict", "type": "string" }, "kf_oj__contracts__judging__Language": { "enum": [ "c17", "cpp20" ], "title": "Language", "type": "string" }, "kf_oj__contracts__judging_v2__Language": { "enum": [ "c17", "cpp20", "python313", "java21" ], "title": "Language", "type": "string" } }, "securitySchemes": { "WorkerLease": { "scheme": "bearer", "type": "http" } } }, "info": { "description": "平台 API。身份使用真实可撤销会话,业务接口按模块逐项接入。", "title": "KF-OnlineJudge Platform API", "version": "0.0.1" }, "openapi": "3.1.0", "paths": { "/api/v1/auth/login": { "post": { "operationId": "login_api_v1_auth_login_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginRequest" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/LoginResponse" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Login", "tags": [ "identity" ] } }, "/api/v1/auth/logout": { "post": { "operationId": "logout_api_v1_auth_logout_post", "responses": { "204": { "description": "Successful Response" } }, "summary": "Logout", "tags": [ "identity" ] } }, "/api/v1/auth/me": { "get": { "operationId": "me_api_v1_auth_me_get", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CurrentUser" } } }, "description": "Successful Response" } }, "summary": "Me", "tags": [ "identity" ] } }, "/api/v1/health/live": { "get": { "description": "Check process liveness only; does not attest DB, queue or judge readiness.", "operationId": "liveness", "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HealthResponse" } } }, "description": "Successful Response" } }, "summary": "Liveness", "tags": [ "health" ] } }, "/api/v1/internal/evaluations/{evaluation_id}/attempts/{attempt_id}/artifacts/{digest}": { "get": { "operationId": "artifact_api_v1_internal_evaluations__evaluation_id__attempts__attempt_id__artifacts__digest__get", "parameters": [ { "in": "path", "name": "evaluation_id", "required": true, "schema": { "format": "uuid", "title": "Evaluation Id", "type": "string" } }, { "in": "path", "name": "attempt_id", "required": true, "schema": { "format": "uuid", "title": "Attempt Id", "type": "string" } }, { "in": "path", "name": "digest", "required": true, "schema": { "title": "Digest", "type": "string" } }, { "in": "header", "name": "X-Worker-ID", "required": true, "schema": { "format": "uuid", "title": "X-Worker-Id", "type": "string" } }, { "in": "header", "name": "X-Fencing-Version", "required": true, "schema": { "minimum": 1, "title": "X-Fencing-Version", "type": "integer" } } ], "responses": { "200": { "content": { "application/octet-stream": { "schema": { "format": "binary", "type": "string" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "WorkerLease": [] } ], "summary": "Artifact", "tags": [ "worker artifacts" ] } }, "/api/v1/internal/evaluations/{evaluation_id}/attempts/{attempt_id}/manifest": { "get": { "operationId": "manifest_api_v1_internal_evaluations__evaluation_id__attempts__attempt_id__manifest_get", "parameters": [ { "in": "path", "name": "evaluation_id", "required": true, "schema": { "format": "uuid", "title": "Evaluation Id", "type": "string" } }, { "in": "path", "name": "attempt_id", "required": true, "schema": { "format": "uuid", "title": "Attempt Id", "type": "string" } }, { "in": "header", "name": "X-Worker-ID", "required": true, "schema": { "format": "uuid", "title": "X-Worker-Id", "type": "string" } }, { "in": "header", "name": "X-Fencing-Version", "required": true, "schema": { "minimum": 1, "title": "X-Fencing-Version", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/JobManifest" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "security": [ { "WorkerLease": [] } ], "summary": "Manifest", "tags": [ "worker artifacts" ] } }, "/api/v1/problems": { "get": { "operationId": "list_problems_api_v1_problems_get", "parameters": [ { "in": "query", "name": "after", "required": false, "schema": { "anyOf": [ { "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$", "type": "string" }, { "type": "null" } ], "title": "After" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 20, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemPage" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "List Problems", "tags": [ "problems" ] } }, "/api/v1/problems/versions/{version_id}": { "get": { "operationId": "problem_version_api_v1_problems_versions__version_id__get", "parameters": [ { "in": "path", "name": "version_id", "required": true, "schema": { "format": "uuid", "title": "Version Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ProblemDetail" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Problem Version", "tags": [ "problems" ] } }, "/api/v1/submissions": { "get": { "operationId": "history_api_v1_submissions_get", "parameters": [ { "in": "query", "name": "after", "required": false, "schema": { "anyOf": [ { "maxLength": 128, "type": "string" }, { "type": "null" } ], "title": "After" } }, { "in": "query", "name": "limit", "required": false, "schema": { "default": 20, "maximum": 100, "minimum": 1, "title": "Limit", "type": "integer" } }, { "in": "query", "name": "problem_version_id", "required": false, "schema": { "anyOf": [ { "format": "uuid", "type": "string" }, { "type": "null" } ], "title": "Problem Version Id" } }, { "in": "query", "name": "language", "required": false, "schema": { "anyOf": [ { "$ref": "#/components/schemas/Language-Input" }, { "type": "null" } ], "title": "Language" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmissionPage" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "History", "tags": [ "submissions" ] }, "post": { "operationId": "create_api_v1_submissions_post", "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateSubmission" } } }, "required": true }, "responses": { "201": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmissionCreated" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Create", "tags": [ "submissions" ] } }, "/api/v1/submissions/{submission_id}": { "get": { "operationId": "detail_api_v1_submissions__submission_id__get", "parameters": [ { "in": "path", "name": "submission_id", "required": true, "schema": { "format": "uuid", "title": "Submission Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmissionDetail" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Detail", "tags": [ "submissions" ] } }, "/api/v1/submissions/{submission_id}/cancel": { "post": { "operationId": "cancel_api_v1_submissions__submission_id__cancel_post", "parameters": [ { "in": "path", "name": "submission_id", "required": true, "schema": { "format": "uuid", "title": "Submission Id", "type": "string" } } ], "responses": { "202": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancellationAccepted" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Cancel", "tags": [ "submissions" ] } }, "/api/v1/submissions/{submission_id}/performance": { "get": { "operationId": "performance_api_v1_submissions__submission_id__performance_get", "parameters": [ { "in": "path", "name": "submission_id", "required": true, "schema": { "format": "uuid", "title": "Submission Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmissionPerformance" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Performance", "tags": [ "submissions" ] } }, "/api/v1/submissions/{submission_id}/source": { "get": { "operationId": "source_api_v1_submissions__submission_id__source_get", "parameters": [ { "in": "path", "name": "submission_id", "required": true, "schema": { "format": "uuid", "title": "Submission Id", "type": "string" } } ], "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/SubmissionSource" } } }, "description": "Successful Response" }, "422": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/HTTPValidationError" } } }, "description": "Validation Error" } }, "summary": "Source", "tags": [ "submissions" ] } } } }