Skip to content

Commit

Permalink
Update api in results
Browse files Browse the repository at this point in the history
  • Loading branch information
indraniBh committed Sep 12, 2024
1 parent 4b8d74b commit fd4f6b1
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions api/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ paths:
$ref: '../config/config.yaml#/components/schemas/Convergence.Config'
responses:
'200':
$ref: '../models/result/request.yaml#/components/responses/Success'
$ref: '../models/result/request.yaml#/components/schemas/Warning'
x-field-uid: 1
'400':
$ref: '../models/result/request.yaml#/components/responses/BadRequest'
$ref: '../models/result/request.yaml#/components/schemas/Error'
x-field-uid: 2
'500':
$ref: '../models/result/request.yaml#/components/responses/InternalServerError'
x-field-uid: 3
/control/routes:
post:
tags: ['Control']
Expand All @@ -35,14 +32,11 @@ paths:
$ref: '../control/control.yaml#/components/schemas/Convergence.State'
responses:
'200':
$ref: '../models/result/request.yaml#/components/responses/Success'
$ref: '../models/result/request.yaml#/components/schemas/Warning'
x-field-uid: 1
'400':
$ref: '../models/result/request.yaml#/components/responses/BadRequest'
$ref: '../models/result/request.yaml#/components/schemas/Error'
x-field-uid: 2
'500':
$ref: '../models/result/request.yaml#/components/responses/InternalServerError'
x-field-uid: 3
/control/ping:
post:
tags: ['Control']
Expand All @@ -57,22 +51,19 @@ paths:
content:
application/json:
schema:
$ref: '../models/control/control.yaml#/components/schemas/Ping.Request'
$ref: '../models/control/ping.yaml#/components/schemas/Ping.Request'
responses:
'200':
description: >-
Responses for Ping
content:
application/json:
schema:
$ref: '../models/control/ping.yaml#/components/schemas/Ping.Response'
$ref: '../models/control/ping.yaml#/components/schemas/Warning'
x-field-uid: 1
'400':
$ref: '../models/result/request.yaml#/components/responses/BadRequest'
$ref: '../models/result/request.yaml#/components/schemas/Error'
x-field-uid: 2
'500':
$ref: '../models/result/request.yaml#/components/responses/InternalServerError'
x-field-uid: 3
/results:
post:
tags: ['Results']
Expand All @@ -95,8 +86,5 @@ paths:
$ref: '../result/response.yaml#/components/schemas/Convergence.Response'
x-field-uid: 1
'400':
$ref: '../models/result/request.yaml#/components/responses/BadRequest'
$ref: '../models/result/request.yaml#/components/schemas/Error'
x-field-uid: 2
'500':
$ref: '../models/result/request.yaml#/components/responses/InternalServerError'
x-field-uid: 3

0 comments on commit fd4f6b1

Please sign in to comment.