File tree Expand file tree Collapse file tree 3 files changed +195
-12
lines changed Expand file tree Collapse file tree 3 files changed +195
-12
lines changed Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ const docTemplate = `{
779
779
}
780
780
}
781
781
},
782
- "post ": {
782
+ "put ": {
783
783
"description": "Sets the ZOS version",
784
784
"consumes": [
785
785
"application/json"
@@ -1120,7 +1120,18 @@ const docTemplate = `{
1120
1120
}
1121
1121
},
1122
1122
"server.UpdateAccountRequest": {
1123
- "type": "object"
1123
+ "type": "object",
1124
+ "properties": {
1125
+ "relays": {
1126
+ "type": "array",
1127
+ "items": {
1128
+ "type": "string"
1129
+ }
1130
+ },
1131
+ "rmb_enc_key": {
1132
+ "type": "string"
1133
+ }
1134
+ }
1124
1135
},
1125
1136
"server.UpdateFarmRequest": {
1126
1137
"type": "object",
@@ -1173,7 +1184,19 @@ const docTemplate = `{
1173
1184
}
1174
1185
},
1175
1186
"server.UptimeReportRequest": {
1176
- "type": "object"
1187
+ "type": "object",
1188
+ "required": [
1189
+ "timestamp",
1190
+ "uptime"
1191
+ ],
1192
+ "properties": {
1193
+ "timestamp": {
1194
+ "type": "string"
1195
+ },
1196
+ "uptime": {
1197
+ "$ref": "#/definitions/time.Duration"
1198
+ }
1199
+ }
1177
1200
},
1178
1201
"server.ZOSVersionRequest": {
1179
1202
"type": "object",
@@ -1185,18 +1208,57 @@ const docTemplate = `{
1185
1208
"type": "string"
1186
1209
}
1187
1210
}
1211
+ },
1212
+ "time.Duration": {
1213
+ "type": "integer",
1214
+ "enum": [
1215
+ -9223372036854775808,
1216
+ 9223372036854775807,
1217
+ 1,
1218
+ 1000,
1219
+ 1000000,
1220
+ 1000000000,
1221
+ 60000000000,
1222
+ 3600000000000,
1223
+ -9223372036854775808,
1224
+ 9223372036854775807,
1225
+ 1,
1226
+ 1000,
1227
+ 1000000,
1228
+ 1000000000,
1229
+ 60000000000,
1230
+ 3600000000000
1231
+ ],
1232
+ "x-enum-varnames": [
1233
+ "minDuration",
1234
+ "maxDuration",
1235
+ "Nanosecond",
1236
+ "Microsecond",
1237
+ "Millisecond",
1238
+ "Second",
1239
+ "Minute",
1240
+ "Hour",
1241
+ "minDuration",
1242
+ "maxDuration",
1243
+ "Nanosecond",
1244
+ "Microsecond",
1245
+ "Millisecond",
1246
+ "Second",
1247
+ "Minute",
1248
+ "Hour"
1249
+ ]
1188
1250
}
1189
1251
}
1190
1252
}`
1191
1253
1192
1254
// SwaggerInfo holds exported Swagger Info so clients can modify it
1193
1255
var SwaggerInfo = & swag.Spec {
1194
- Version : "" ,
1256
+ Version : "1.0 " ,
1195
1257
Host : "" ,
1196
- BasePath : "" ,
1258
+ BasePath : "/v1 " ,
1197
1259
Schemes : []string {},
1198
- Title : "" ,
1199
- Description : "" ,
1260
+ Title : "Node Registrar API " ,
1261
+ Description : "API for managing TFGrid node registration " ,
1200
1262
InfoInstanceName : "swagger" ,
1201
1263
SwaggerTemplate : docTemplate ,
1202
1264
LeftDelim : "{{" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"swagger" : " 2.0" ,
3
3
"info" : {
4
- "contact" : {}
4
+ "description" : " API for managing TFGrid node registration" ,
5
+ "title" : " Node Registrar API" ,
6
+ "contact" : {},
7
+ "version" : " 1.0"
5
8
},
9
+ "basePath" : " /v1" ,
6
10
"paths" : {
7
11
"/accounts" : {
8
12
"get" : {
768
772
}
769
773
}
770
774
},
771
- "post " : {
775
+ "put " : {
772
776
"description" : " Sets the ZOS version" ,
773
777
"consumes" : [
774
778
" application/json"
1109
1113
}
1110
1114
},
1111
1115
"server.UpdateAccountRequest" : {
1112
- "type" : " object"
1116
+ "type" : " object" ,
1117
+ "properties" : {
1118
+ "relays" : {
1119
+ "type" : " array" ,
1120
+ "items" : {
1121
+ "type" : " string"
1122
+ }
1123
+ },
1124
+ "rmb_enc_key" : {
1125
+ "type" : " string"
1126
+ }
1127
+ }
1113
1128
},
1114
1129
"server.UpdateFarmRequest" : {
1115
1130
"type" : " object" ,
1162
1177
}
1163
1178
},
1164
1179
"server.UptimeReportRequest" : {
1165
- "type" : " object"
1180
+ "type" : " object" ,
1181
+ "required" : [
1182
+ " timestamp" ,
1183
+ " uptime"
1184
+ ],
1185
+ "properties" : {
1186
+ "timestamp" : {
1187
+ "type" : " string"
1188
+ },
1189
+ "uptime" : {
1190
+ "$ref" : " #/definitions/time.Duration"
1191
+ }
1192
+ }
1166
1193
},
1167
1194
"server.ZOSVersionRequest" : {
1168
1195
"type" : " object" ,
1174
1201
"type" : " string"
1175
1202
}
1176
1203
}
1204
+ },
1205
+ "time.Duration" : {
1206
+ "type" : " integer" ,
1207
+ "enum" : [
1208
+ -9223372036854775808 ,
1209
+ 9223372036854775807 ,
1210
+ 1 ,
1211
+ 1000 ,
1212
+ 1000000 ,
1213
+ 1000000000 ,
1214
+ 60000000000 ,
1215
+ 3600000000000 ,
1216
+ -9223372036854775808 ,
1217
+ 9223372036854775807 ,
1218
+ 1 ,
1219
+ 1000 ,
1220
+ 1000000 ,
1221
+ 1000000000 ,
1222
+ 60000000000 ,
1223
+ 3600000000000
1224
+ ],
1225
+ "x-enum-varnames" : [
1226
+ " minDuration" ,
1227
+ " maxDuration" ,
1228
+ " Nanosecond" ,
1229
+ " Microsecond" ,
1230
+ " Millisecond" ,
1231
+ " Second" ,
1232
+ " Minute" ,
1233
+ " Hour" ,
1234
+ " minDuration" ,
1235
+ " maxDuration" ,
1236
+ " Nanosecond" ,
1237
+ " Microsecond" ,
1238
+ " Millisecond" ,
1239
+ " Second" ,
1240
+ " Minute" ,
1241
+ " Hour"
1242
+ ]
1177
1243
}
1178
1244
}
1179
1245
}
Original file line number Diff line number Diff line change
1
+ basePath : /v1
1
2
definitions :
2
3
db.Account :
3
4
properties :
@@ -189,6 +190,13 @@ definitions:
189
190
- twin_id
190
191
type : object
191
192
server.UpdateAccountRequest :
193
+ properties :
194
+ relays :
195
+ items :
196
+ type : string
197
+ type : array
198
+ rmb_enc_key :
199
+ type : string
192
200
type : object
193
201
server.UpdateFarmRequest :
194
202
properties :
@@ -226,6 +234,14 @@ definitions:
226
234
- serial_number
227
235
type : object
228
236
server.UptimeReportRequest :
237
+ properties :
238
+ timestamp :
239
+ type : string
240
+ uptime :
241
+ $ref : ' #/definitions/time.Duration'
242
+ required :
243
+ - timestamp
244
+ - uptime
229
245
type : object
230
246
server.ZOSVersionRequest :
231
247
properties :
@@ -234,8 +250,47 @@ definitions:
234
250
required :
235
251
- version
236
252
type : object
253
+ time.Duration :
254
+ enum :
255
+ - -9223372036854775808
256
+ - 9223372036854775807
257
+ - 1
258
+ - 1000
259
+ - 1000000
260
+ - 1000000000
261
+ - 60000000000
262
+ - 3600000000000
263
+ - -9223372036854775808
264
+ - 9223372036854775807
265
+ - 1
266
+ - 1000
267
+ - 1000000
268
+ - 1000000000
269
+ - 60000000000
270
+ - 3600000000000
271
+ type : integer
272
+ x-enum-varnames :
273
+ - minDuration
274
+ - maxDuration
275
+ - Nanosecond
276
+ - Microsecond
277
+ - Millisecond
278
+ - Second
279
+ - Minute
280
+ - Hour
281
+ - minDuration
282
+ - maxDuration
283
+ - Nanosecond
284
+ - Microsecond
285
+ - Millisecond
286
+ - Second
287
+ - Minute
288
+ - Hour
237
289
info :
238
290
contact : {}
291
+ description : API for managing TFGrid node registration
292
+ title : Node Registrar API
293
+ version : " 1.0"
239
294
paths :
240
295
/accounts :
241
296
get :
@@ -757,7 +812,7 @@ paths:
757
812
summary : Get ZOS Version
758
813
tags :
759
814
- ZOS
760
- post :
815
+ put :
761
816
consumes :
762
817
- application/json
763
818
description : Sets the ZOS version
You can’t perform that action at this time.
0 commit comments