File tree Expand file tree Collapse file tree 4 files changed +38
-0
lines changed
guidelines/sample-server/files Expand file tree Collapse file tree 4 files changed +38
-0
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"Model" : {
3
+ "type" : " object" ,
3
4
"description" : " A simple model" ,
4
5
"properties" : {
5
6
"id" : {
13
14
}
14
15
},
15
16
"Tag" : {
17
+ "type" : " object" ,
16
18
"description" : " A tag entity in the system" ,
17
19
"properties" : {
18
20
"name" : {
21
23
}
22
24
},
23
25
"Health" : {
26
+ "type" : " object" ,
24
27
"description" : " An object representing the health of a server" ,
25
28
"required" : [
26
29
" liveThreadCount" ,
52
55
}
53
56
},
54
57
"JVMMemory" : {
58
+ "type" : " object" ,
55
59
"required" : [
56
60
" allocated" ,
57
61
" max" ,
81
85
"format" : " double"
82
86
}
83
87
}
88
+ },
89
+ "ErrorMessage" : {
90
+ "type" : " object" ,
91
+ "description" : " A shared model for error message" ,
92
+ "required" : [" errorCode" ," reason" ],
93
+ "properties" : {
94
+ "errorCode" : {
95
+ "type" : " integer" ,
96
+ "format" : " int64"
97
+ },
98
+ "reason" : {
99
+ "description" : " the reason for this error" ,
100
+ "type" : " string"
101
+ },
102
+ "description" : {
103
+ "description" : " an optional longer description of this error message" ,
104
+ "type" : " string"
105
+ }
106
+ }
84
107
}
85
108
}
Original file line number Diff line number Diff line change 16
16
"schema" : {
17
17
"$ref" : " http://localhost:8000/models.json#/Health"
18
18
}
19
+ },
20
+ "404" : {
21
+ "$ref" : " http://localhost:8000/responses.json#/NotFoundError"
19
22
}
20
23
}
21
24
}
22
25
}
23
26
}
27
+
Original file line number Diff line number Diff line change
1
+ {
2
+ "NotFoundError" : {
3
+ "description" : " Entity not found" ,
4
+ "schema" : {
5
+ "$ref" : " http://localhost:8000/models.json#/ErrorMessage"
6
+ }
7
+ }
8
+ }
Original file line number Diff line number Diff line change 36
36
"$ref" : " http://localhost:8000/models.json#/Health"
37
37
}
38
38
}
39
+ },
40
+ "404" : {
41
+ "$ref" : " http://localhost:8000/responses.json#/NotFoundError"
39
42
}
40
43
}
41
44
}
You can’t perform that action at this time.
0 commit comments