From 9c69ced34b0a7596c3bb37106d97c6f0a48731de Mon Sep 17 00:00:00 2001 From: Vyacheslav1557 Date: Fri, 28 Mar 2025 20:31:26 +0500 Subject: [PATCH] refactor(user,session): refactor api --- tester/v1/openapi.yaml | 64 +++++++----------------------------------- 1 file changed, 10 insertions(+), 54 deletions(-) diff --git a/tester/v1/openapi.yaml b/tester/v1/openapi.yaml index 14b854e..612a273 100644 --- a/tester/v1/openapi.yaml +++ b/tester/v1/openapi.yaml @@ -640,51 +640,7 @@ components: id: type: integer format: int32 - BestSolution: - type: object - required: - - id - - task_id - - participant_id - - state - - score - - penalty - - total_score - - language - - created_at - - updated_at - properties: - id: - type: integer - format: int32 - task_id: - type: integer - format: int32 - participant_id: - type: integer - format: int32 - state: - type: integer - format: int32 - score: - type: integer - format: int32 - penalty: - type: integer - format: int32 - total_score: - type: integer - format: int32 - language: - type: integer - format: int32 - created_at: - type: string - format: date-time - updated_at: - type: string - format: date-time - RichTask: + TasksListItem: type: object required: - id @@ -733,12 +689,12 @@ components: type: object required: - task - - best_solution + - solution properties: task: - $ref: '#/components/schemas/RichTask' - best_solution: - $ref: '#/components/schemas/BestSolution' + $ref: '#/components/schemas/TasksListItem' + solution: + $ref: '#/components/schemas/Solution' AddParticipantResponse: type: object required: @@ -852,14 +808,14 @@ components: solutions: type: array items: - $ref: '#/components/schemas/SolutionListItem' + $ref: '#/components/schemas/SolutionsListItem' page: type: integer format: int32 max_page: type: integer format: int32 - SolutionListItem: + SolutionsListItem: type: object required: - id @@ -1032,7 +988,7 @@ components: tasks: type: array items: - $ref: '#/components/schemas/RichTask' + $ref: '#/components/schemas/TasksListItem' task: $ref: '#/components/schemas/Task' GetMonitorResponse: @@ -1057,7 +1013,7 @@ components: tasks: type: array items: - $ref: '#/components/schemas/RichTask' + $ref: '#/components/schemas/TasksListItem' participants: type: array items: @@ -1083,7 +1039,7 @@ components: solutions: type: array items: - $ref: '#/components/schemas/SolutionListItem' + $ref: '#/components/schemas/SolutionsListItem' summary_per_problem: type: array items: