@@ -280,9 +280,12 @@ const docTemplate = `{
280
280
],
281
281
"responses": {
282
282
"201": {
283
- "description": "Farm created successfully ",
283
+ "description": "'farm_id': farmID\"] ",
284
284
"schema": {
285
- "$ref": "#/definitions/db.Farm"
285
+ "type": "object",
286
+ "additionalProperties": {
287
+ "type": "integer"
288
+ }
286
289
}
287
290
},
288
291
"400": {
@@ -533,9 +536,12 @@ const docTemplate = `{
533
536
],
534
537
"responses": {
535
538
"201": {
536
- "description": "ID of the created node ",
539
+ "description": "'node_id': nodeID ",
537
540
"schema": {
538
- "type": "integer"
541
+ "type": "object",
542
+ "additionalProperties": {
543
+ "type": "integer"
544
+ }
539
545
}
540
546
},
541
547
"400": {
@@ -853,7 +859,7 @@ const docTemplate = `{
853
859
"db.Account": {
854
860
"type": "object",
855
861
"properties": {
856
- "createdAt ": {
862
+ "created_at ": {
857
863
"type": "string"
858
864
},
859
865
"farms": {
@@ -881,15 +887,15 @@ const docTemplate = `{
881
887
"twin_id": {
882
888
"type": "integer"
883
889
},
884
- "updatedAt ": {
890
+ "updated_at ": {
885
891
"type": "string"
886
892
}
887
893
}
888
894
},
889
895
"db.Farm": {
890
896
"type": "object",
891
897
"properties": {
892
- "createdAt ": {
898
+ "created_at ": {
893
899
"type": "string"
894
900
},
895
901
"dedicated": {
@@ -912,7 +918,7 @@ const docTemplate = `{
912
918
"description": "Farmer account reference",
913
919
"type": "integer"
914
920
},
915
- "updatedAt ": {
921
+ "updated_at ": {
916
922
"type": "string"
917
923
}
918
924
}
@@ -954,7 +960,7 @@ const docTemplate = `{
954
960
"approved": {
955
961
"type": "boolean"
956
962
},
957
- "createdAt ": {
963
+ "created_at ": {
958
964
"type": "string"
959
965
},
960
966
"farm_id": {
@@ -981,17 +987,17 @@ const docTemplate = `{
981
987
}
982
988
]
983
989
},
984
- "secureBoot ": {
990
+ "secure_boot ": {
985
991
"type": "boolean"
986
992
},
987
- "serialNumber ": {
993
+ "serial_number ": {
988
994
"type": "string"
989
995
},
990
996
"twin_id": {
991
997
"description": "Node account reference",
992
998
"type": "integer"
993
999
},
994
- "updatedAt ": {
1000
+ "updated_at ": {
995
1001
"type": "string"
996
1002
},
997
1003
"uptime": {
@@ -1025,7 +1031,7 @@ const docTemplate = `{
1025
1031
"db.UptimeReport": {
1026
1032
"type": "object",
1027
1033
"properties": {
1028
- "createdAt ": {
1034
+ "created_at ": {
1029
1035
"type": "string"
1030
1036
},
1031
1037
"duration": {
@@ -1041,7 +1047,7 @@ const docTemplate = `{
1041
1047
"timestamp": {
1042
1048
"type": "string"
1043
1049
},
1044
- "wasRestart ": {
1050
+ "was_restart ": {
1045
1051
"description": "True if this report followed a restart",
1046
1052
"type": "boolean"
1047
1053
}
@@ -1120,18 +1126,7 @@ const docTemplate = `{
1120
1126
}
1121
1127
},
1122
1128
"server.UpdateAccountRequest": {
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
- }
1129
+ "type": "object"
1135
1130
},
1136
1131
"server.UpdateFarmRequest": {
1137
1132
"type": "object",
@@ -1184,19 +1179,7 @@ const docTemplate = `{
1184
1179
}
1185
1180
},
1186
1181
"server.UptimeReportRequest": {
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
- }
1182
+ "type": "object"
1200
1183
},
1201
1184
"server.ZOSVersionRequest": {
1202
1185
"type": "object",
@@ -1208,57 +1191,18 @@ const docTemplate = `{
1208
1191
"type": "string"
1209
1192
}
1210
1193
}
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
- ]
1250
1194
}
1251
1195
}
1252
1196
}`
1253
1197
1254
1198
// SwaggerInfo holds exported Swagger Info so clients can modify it
1255
1199
var SwaggerInfo = & swag.Spec {
1256
- Version : "1.0 " ,
1200
+ Version : "" ,
1257
1201
Host : "" ,
1258
- BasePath : "/v1 " ,
1202
+ BasePath : "" ,
1259
1203
Schemes : []string {},
1260
- Title : "Node Registrar API " ,
1261
- Description : "API for managing TFGrid node registration " ,
1204
+ Title : "" ,
1205
+ Description : "" ,
1262
1206
InfoInstanceName : "swagger" ,
1263
1207
SwaggerTemplate : docTemplate ,
1264
1208
LeftDelim : "{{" ,
0 commit comments