Skip to content

Commit 226590f

Browse files
committed
fix(specs): fix specs across predict model endpoints
1 parent ac9f009 commit 226590f

File tree

7 files changed

+10
-16
lines changed

7 files changed

+10
-16
lines changed

specs/predict/paths/models/getModelMetrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ get:
1919
'401':
2020
$ref: '../../responses/InvalidCredentials.yml'
2121
'404':
22-
$ref: '../../responses/ModelNotFound.yml'
22+
$ref: '../../../common/responses/IndexNotFound.yml'
2323
'422':
2424
$ref: '../../../common/responses/UnprocessableEntity.yml'
2525
'500':

specs/predict/paths/models/specificModels.yml renamed to specs/predict/paths/models/modelInstances.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ get:
1717
'401':
1818
$ref: '../../responses/InvalidCredentials.yml'
1919
'404':
20-
$ref: '../../responses/ModelNotFound.yml'
20+
$ref: '../../../common/responses/IndexNotFound.yml'
2121
'422':
2222
$ref: '../../../common/responses/UnprocessableEntity.yml'
2323
'500':
@@ -59,7 +59,7 @@ post:
5959
'401':
6060
$ref: '../../responses/InvalidCredentials.yml'
6161
'404':
62-
$ref: '../../responses/ModelNotFound.yml'
62+
$ref: '../../../common/responses/IndexNotFound.yml'
6363
'422':
6464
$ref: '../../../common/responses/UnprocessableEntity.yml'
6565
'500':
@@ -95,7 +95,7 @@ delete:
9595
'401':
9696
$ref: '../../responses/InvalidCredentials.yml'
9797
'404':
98-
$ref: '../../responses/ModelNotFound.yml'
98+
$ref: '../../../common/responses/IndexNotFound.yml'
9999
'422':
100100
$ref: '../../../common/responses/UnprocessableEntity.yml'
101101
'500':

specs/predict/paths/models/models.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
get:
22
tags:
33
- models
4-
operationId: getListModelInstance
5-
summary: Get a list of model instances.
4+
operationId: getModelInstances
5+
summary: Get model instances.
66
description: Get a list of all model instances.
77
responses:
88
'200':
99
description: OK
1010
content:
1111
application/json:
1212
schema:
13-
title: getListModelInstanceResponse
13+
title: getModelInstancesResponse
1414
type: array
1515
items:
1616
$ref: '../../responses/Models.yml#/modelInstance'

specs/predict/responses/ModelNotFound.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

specs/predict/responses/Models.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ modelInstance:
2626
type: string
2727
lastTrained:
2828
type: string
29-
description: The time this model instance was last trained.
29+
description: The date and time this model instance was last trained.
3030
lastInference:
3131
type: string
32-
description: The time this model instance generated its last inference.
32+
description: The date and time this model instance generated its last inference.
3333
error:
3434
type: string
3535
status:
@@ -45,7 +45,6 @@ modelInstance:
4545
- contentAttributes
4646
- lastTrained
4747
- lastInference
48-
- error
4948
- status
5049

5150
getModelInstanceConfigStatus:

specs/predict/spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ paths:
5959
$ref: 'paths/models/getAvailableModelTypes.yml'
6060

6161
/1/predict/models/{modelID}:
62-
$ref: 'paths/models/specificModels.yml'
62+
$ref: 'paths/models/modelInstances.yml'
6363

6464
/1/predict/models:
6565
$ref: 'paths/models/models.yml'

0 commit comments

Comments
 (0)