forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_repository.yaml
100 lines (100 loc) · 2.42 KB
/
model_repository.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
openapi: 3.0.0
info:
title: Model Repository
version: '2.0'
description: 'https://github.com/triton-inference-server/server/blob/master/docs/protocol/extension_model_repository.md#httprest'
servers: []
paths:
/v2/repository/index:
post:
summary: ''
operationId: post-v2-repository-index
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/repository_index_response'
description: ''
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/repository_index_request'
'/v2/repository/models/${MODEL_NAME}/load':
parameters:
- schema:
type: string
name: MODEL_NAME
in: path
required: true
post:
summary: ''
operationId: post-v2-repository-models-$-MODEL_NAME-load
responses:
'200':
description: OK
'/v2/repository/models/${MODEL_NAME}/unload':
parameters:
- schema:
type: string
name: MODEL_NAME
in: path
required: true
post:
summary: ''
operationId: post-v2-repository-models-$-MODEL_NAME-unload
responses:
'200':
description: OK
components:
schemas:
repository_index_request:
title: repository_index_request
type: object
properties:
ready:
type: boolean
repository_index_response:
title: repository_index_response
type: array
items:
type: object
properties:
name:
type: string
version:
type: string
state:
type: string
enum:
- UNKNOWN
- READY
- UNAVAILABLE
- LOADING
- UNLOADING
reason:
type: string
required:
- name
- state
- reason
repository_index_error_response:
title: repository_index_error_response
type: object
properties:
error:
type: string
repository_load_error_response:
title: repository_load_error_response
type: object
properties:
error:
type: string
repository_unload_error_response:
title: repository_unload_error_response
type: object
properties:
error:
type: string