-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathswagger.json
61 lines (61 loc) · 1.69 KB
/
swagger.json
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
{
"swagger" : "2.0",
"info" : {
"description" : "Wrapper service for exposing H2O data models as REST services.",
"version" : "v1",
"title" : "H2O Scoring Engine Base",
"license" : {
"name" : "Apache License Version 2.0",
"url" : "http://www.apache.org/licenses/LICENSE-2.0"
}
},
"host" : "localhost",
"basePath" : "/",
"tags" : [ {
"name" : "h-2o-scoring-engine-controller",
"description" : "H 2o Scoring Engine Controller"
} ],
"paths" : {
"/score" : {
"post" : {
"tags" : [ "h-2o-scoring-engine-controller" ],
"summary" : "Returns a result of the score operation for the given data model",
"description" : "Privilege level: can be called by any consumer",
"operationId" : "scoreUsingPOST",
"consumes" : [ "application/json" ],
"produces" : [ "application/json" ],
"parameters" : [ {
"in" : "body",
"name" : "data",
"description" : "Input data for scoring",
"required" : true,
"schema" : {
"type" : "array",
"items" : {
"type" : "number",
"format" : "double"
}
}
} ],
"responses" : {
"200" : {
"description" : "SUCCESS",
"schema" : {
"type" : "array",
"items" : {
"type" : "number",
"format" : "double"
}
}
},
"400" : {
"description" : "When data input size is invalid for the given model"
},
"500" : {
"description" : "Internal server error"
}
}
}
}
}
}