From e5f7902c188a6b3daae9b147f687c4564cbfdfba Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Fri, 7 Mar 2025 14:59:12 +0500 Subject: [PATCH] feat(tester): --- tester/v1/openapi.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/tester/v1/openapi.yaml b/tester/v1/openapi.yaml index bcf9cac..a591058 100644 --- a/tester/v1/openapi.yaml +++ b/tester/v1/openapi.yaml @@ -73,6 +73,27 @@ paths: "200": description: OK content: { } + patch: + operationId: UpdateProblem + security: + - bearerAuth: [ ] + parameters: + - name: id + in: path + required: true + schema: + type: integer + format: int32 + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateProblemRequest' + responses: + "200": + description: OK + content: { } /contests: get: operationId: ListContests @@ -574,6 +595,27 @@ components: max_page: type: integer format: int32 + UpdateProblemRequest: + type: object + properties: + title: + type: string + legend: + type: string + input_format: + type: string + output_format: + type: string + notes: + type: string + tutorial: + type: string + memory_limit: + type: integer + format: int32 + time_limit: + type: integer + format: int32 securitySchemes: bearerAuth: type: http