From 9be6a6ca9859e44d4b4502b89c071bc8587491b6 Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Fri, 7 Mar 2025 17:03:20 +0500 Subject: [PATCH] feat(tester): add UpdateContest endpoint --- tester/v1/openapi.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tester/v1/openapi.yaml b/tester/v1/openapi.yaml index a591058..a03b1fb 100644 --- a/tester/v1/openapi.yaml +++ b/tester/v1/openapi.yaml @@ -163,6 +163,26 @@ paths: responses: "200": description: OK + patch: + operationId: UpdateContest + security: + - bearerAuth: [ ] + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int32 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateContestRequest' + responses: + "200": + description: OK /contests/tasks: post: operationId: AddTask @@ -616,6 +636,11 @@ components: time_limit: type: integer format: int32 + UpdateContestRequest: + type: object + properties: + title: + type: string securitySchemes: bearerAuth: type: http