@@ -877,6 +877,7 @@ paths:
877
877
type : array
878
878
items :
879
879
$ref : " ./testEvents.yaml#/components/schemas/TestRunEvent"
880
+
880
881
# Environments
881
882
/environments :
882
883
get :
@@ -1186,87 +1187,6 @@ paths:
1186
1187
description : " problem updating configuration"
1187
1188
1188
1189
# Polling Profile
1189
- /pollingprofile :
1190
- get :
1191
- tags :
1192
- - resource-api
1193
- summary : " List Polling Profiles"
1194
- description : " List polling profiles used on Tracetest to configure how to fetch traces in a test."
1195
- operationId : listPollingProfiles
1196
- parameters :
1197
- - in : query
1198
- name : take
1199
- description : " Indicates the maximum number of polling profiles that can be returned on this call."
1200
- schema :
1201
- type : integer
1202
- default : 20
1203
- - in : query
1204
- name : skip
1205
- description : " Indicates how many polling profiles will be skipped when paginating."
1206
- schema :
1207
- type : integer
1208
- default : 0
1209
- - in : query
1210
- name : sortBy
1211
- description : " Indicates the sort field for on which all polling profiles will be sorted."
1212
- schema :
1213
- type : string
1214
- enum : [id, name, strategy]
1215
- - in : query
1216
- name : sortDirection
1217
- description : " Indicates the sort direction for the polling profiles (ascending or descending)."
1218
- schema :
1219
- type : string
1220
- enum : [asc, desc]
1221
- responses :
1222
- 200 :
1223
- description : successful operation
1224
- content :
1225
- application/json :
1226
- schema :
1227
- type : object
1228
- properties :
1229
- count :
1230
- type : integer
1231
- items :
1232
- type : array
1233
- items :
1234
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1235
- text/yaml :
1236
- schema :
1237
- type : array
1238
- items :
1239
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1240
- 400 :
1241
- description : " invalid query for polling profiles, some data was sent in incorrect format."
1242
- 500 :
1243
- description : " problem listing polling profile"
1244
- post :
1245
- tags :
1246
- - resource-api
1247
- summary : " Create a Polling Profile"
1248
- description : " Create a polling profile used on Tracetest to configure how to fetch traces in a test."
1249
- operationId : createPollingProfile
1250
- requestBody :
1251
- content :
1252
- application/json :
1253
- schema :
1254
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1255
- text/yaml :
1256
- schema :
1257
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1258
- responses :
1259
- 201 :
1260
- description : successful operation
1261
- content :
1262
- application/json :
1263
- schema :
1264
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1265
- text/yaml :
1266
- schema :
1267
- $ref : " ./config.yaml#/components/schemas/PollingProfile"
1268
- 500 :
1269
- description : " problem creating a polling profile"
1270
1190
/pollingprofile/{pollingProfileId} :
1271
1191
get :
1272
1192
tags :
@@ -1277,7 +1197,7 @@ paths:
1277
1197
schema :
1278
1198
type : string
1279
1199
required : true
1280
- description : " ID of a polling profile used on Tracetest to configure how to fetch traces in a test."
1200
+ description : " ID of a polling profile used on Tracetest to configure how to fetch traces in a test. It should be set as 'current'. "
1281
1201
summary : " Get Polling Profile"
1282
1202
description : " Get a polling profile used on Tracetest to configure how to fetch traces in a test."
1283
1203
operationId : getPollingProfile
@@ -1304,7 +1224,7 @@ paths:
1304
1224
schema :
1305
1225
type : string
1306
1226
required : true
1307
- description : " ID of a polling profile used on Tracetest to configure how to fetch traces in a test."
1227
+ description : " ID of a polling profile used on Tracetest to configure how to fetch traces in a test. It should be set as 'current'. "
1308
1228
summary : " Update a Polling Profile"
1309
1229
description : " Update a polling profile used on Tracetest to configure how to fetch traces in a test."
1310
1230
operationId : updatePollingProfile
@@ -1332,28 +1252,6 @@ paths:
1332
1252
description : " polling profile not found"
1333
1253
500 :
1334
1254
description : " problem updating a polling profile"
1335
- delete :
1336
- tags :
1337
- - resource-api
1338
- parameters :
1339
- - in : path
1340
- name : pollingProfileId
1341
- schema :
1342
- type : string
1343
- required : true
1344
- description : " ID of a polling profile used on Tracetest to configure how to fetch traces in a test."
1345
- summary : " Delete a Polling Profile"
1346
- description : " Delete a polling profile used on Tracetest to configure how to fetch traces in a test."
1347
- operationId : deletePollingProfile
1348
- responses :
1349
- 204 :
1350
- description : successful operation
1351
- 400 :
1352
- description : " invalid polling profile, some data was sent in incorrect format."
1353
- 404 :
1354
- description : " polling profile not found"
1355
- 500 :
1356
- description : " problem deleting a polling profile"
1357
1255
1358
1256
# Demo
1359
1257
/demo :
@@ -1394,14 +1292,24 @@ paths:
1394
1292
content :
1395
1293
application/json :
1396
1294
schema :
1397
- type : array
1398
- items :
1399
- $ref : " ./config.yaml#/components/schemas/Demo"
1295
+ type : object
1296
+ properties :
1297
+ count :
1298
+ type : integer
1299
+ items :
1300
+ type : array
1301
+ items :
1302
+ $ref : " ./config.yaml#/components/schemas/Demo"
1400
1303
text/yaml :
1401
1304
schema :
1402
- type : array
1403
- items :
1404
- $ref : " ./config.yaml#/components/schemas/Demo"
1305
+ type : object
1306
+ properties :
1307
+ count :
1308
+ type : integer
1309
+ items :
1310
+ type : array
1311
+ items :
1312
+ $ref : " ./config.yaml#/components/schemas/Demo"
1405
1313
400 :
1406
1314
description : " invalid query for demos, some data was sent in incorrect format."
1407
1315
500 :
0 commit comments