From 89b4b19ae383c17665f0c3176e3d4122e90e46ec Mon Sep 17 00:00:00 2001 From: holoti Date: Sun, 20 Apr 2025 12:23:01 +0500 Subject: [PATCH] feat: UploadProblem --- tester/v1/openapi.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/tester/v1/openapi.yaml b/tester/v1/openapi.yaml index 6a8ffbc..f59f513 100644 --- a/tester/v1/openapi.yaml +++ b/tester/v1/openapi.yaml @@ -99,6 +99,29 @@ paths: "200": description: OK content: { } + post: + operationId: UploadProblem + security: + - bearerAuth: [ ] + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int32 + example: 3 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UploadProblemRequest' + responses: + "200": + description: OK + content: { } + /contests: get: operationId: ListContests @@ -833,6 +856,14 @@ components: type: integer format: int32 example: 1000 + UploadProblemRequest: + type: object + required: + - archive + properties: + archive: + type: string + format: binary UpdateContestRequest: type: object properties: