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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
|
<!doctype html>
<html>
<head>
<title>Weles</title>
<style type="text/css">
body {
font-family: Trebuchet MS, sans-serif;
font-size: 15px;
color: #444;
margin-right: 24px;
}
h1 {
font-size: 25px;
}
h2 {
font-size: 20px;
}
h3 {
font-size: 16px;
font-weight: bold;
}
hr {
height: 1px;
border: 0;
color: #ddd;
background-color: #ddd;
}
.app-desc {
clear: both;
margin-left: 20px;
}
.param-name {
width: 100%;
}
.license-info {
margin-left: 20px;
}
.license-url {
margin-left: 20px;
}
.model {
margin: 0 0 0px 20px;
}
.method {
margin-left: 20px;
}
.method-notes {
margin: 10px 0 20px 0;
font-size: 90%;
color: #555;
}
pre {
padding: 10px;
margin-bottom: 2px;
}
.http-method {
text-transform: uppercase;
}
pre.get {
background-color: #0f6ab4;
}
pre.post {
background-color: #10a54a;
}
pre.put {
background-color: #c5862b;
}
pre.delete {
background-color: #a41e22;
}
.huge {
color: #fff;
}
pre.example {
background-color: #f3f3f3;
padding: 10px;
border: 1px solid #ddd;
}
code {
white-space: pre;
}
.nickname {
font-weight: bold;
}
.method-path {
font-size: 1.5em;
background-color: #0f6ab4;
}
.up {
float:right;
}
.parameter {
width: 500px;
}
.param {
width: 500px;
padding: 10px 0 0 20px;
font-weight: bold;
}
.param-desc {
width: 700px;
padding: 0 0 0 20px;
color: #777;
}
.param-type {
font-style: italic;
}
.param-enum-header {
width: 700px;
padding: 0 0 0 60px;
color: #777;
font-weight: bold;
}
.param-enum {
width: 700px;
padding: 0 0 0 80px;
color: #777;
font-style: italic;
}
.field-label {
padding: 0;
margin: 0;
clear: both;
}
.field-items {
padding: 0 0 15px 0;
margin-bottom: 15px;
}
.return-type {
clear: both;
padding-bottom: 10px;
}
.param-header {
font-weight: bold;
}
.method-tags {
text-align: right;
}
.method-tag {
background: none repeat scroll 0% 0% #24A600;
border-radius: 3px;
padding: 2px 10px;
margin: 2px;
color: #FFF;
display: inline-block;
text-decoration: none;
}
</style>
</head>
<body>
<h1>Weles</h1>
<div class="app-desc">This is a Weles server. You can find out more about Weles at <a href="http://tbd.tbd">http://tbd.tbd</a>.</div>
<div class="app-desc">More information: <a href="https://helloreverb.com">https://helloreverb.com</a></div>
<div class="app-desc">Contact Info: <a href="tbd@tbd.com">tbd@tbd.com</a></div>
<div class="app-desc">Version: 0.0.0</div>
<div class="app-desc">BasePath:/api/v1</div>
<div class="license-info">Apache 2.0</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>
<h2>Access</h2>
<h2><a name="__Methods">Methods</a></h2>
[ Jump to <a href="#__Models">Models</a> ]
<h3>Table of Contents </h3>
<div class="method-summary"></div>
<h4><a href="#Artifacts">Artifacts</a></h4>
<ul>
<li><a href="#artifactLister"><code><span class="http-method">post</span> /artifacts/list</code></a></li>
</ul>
<h4><a href="#Jobs">Jobs</a></h4>
<ul>
<li><a href="#jobCanceler"><code><span class="http-method">post</span> /jobs/{JobID}/cancel</code></a></li>
<li><a href="#jobCreator"><code><span class="http-method">post</span> /jobs</code></a></li>
<li><a href="#jobLister"><code><span class="http-method">post</span> /jobs/list</code></a></li>
</ul>
<h1><a name="Artifacts">Artifacts</a></h1>
<div class="method"><a name="artifactLister"/>
<div class="method-path">
<a class="up" href="#__Methods">Up</a>
<pre class="post"><code class="huge"><span class="http-method">post</span> /artifacts/list</code></pre></div>
<div class="method-summary">List artifacts with filter and sort features (<span class="nickname">artifactLister</span>)</div>
<div class="method-notes">ArtifactLister returns information on filtered Weles artifacts.</div>
<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Request body</h3>
<div class="field-items">
<div class="param">artifactFilterAndSort <a href="#ArtifactFilterAndSort">ArtifactFilterAndSort</a> (optional)</div>
<div class="param-desc"><span class="param-type">Body Parameter</span> — Artifact Filter and Sort object. </div>
</div> <!-- field-items -->
<h3 class="field-label">Query parameters</h3>
<div class="field-items">
<div class="param">after (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — ID of the last element from previous page. format: int64</div><div class="param">before (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — ID of first element from next page. format: int64</div><div class="param">limit (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — Custom page limit. Denotes number of ArtifactInfo structures that will be returned. format: int32</div>
</div> <!-- field-items -->
<h3 class="field-label">Return type</h3>
<div class="return-type">
array[<a href="#ArtifactInfo">ArtifactInfo</a>]
</div>
<!--Todo: process Response Object and its headers, schema, examples -->
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>[ "", "" ]</code></pre>
<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Responses</h3>
<h4 class="field-label">200</h4>
OK
<h4 class="field-label">206</h4>
Partial Content
<h4 class="field-label">400</h4>
Bad Request
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">404</h4>
Not Found
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">500</h4>
Internal Server error
<a href="#ErrResponse">ErrResponse</a>
</div> <!-- method -->
<hr/>
<h1><a name="Jobs">Jobs</a></h1>
<div class="method"><a name="jobCanceler"/>
<div class="method-path">
<a class="up" href="#__Methods">Up</a>
<pre class="post"><code class="huge"><span class="http-method">post</span> /jobs/{JobID}/cancel</code></pre></div>
<div class="method-summary">Cancel existing job (<span class="nickname">jobCanceler</span>)</div>
<div class="method-notes">JobCanceler stops execution of Job identified by JobID.</div>
<h3 class="field-label">Path parameters</h3>
<div class="field-items">
<div class="param">JobID (required)</div>
<div class="param-desc"><span class="param-type">Path Parameter</span> — format: uint64</div>
</div> <!-- field-items -->
<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/json</code></li>
</ul>
<!--Todo: process Response Object and its headers, schema, examples -->
<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Responses</h3>
<h4 class="field-label">204</h4>
No Content
<a href="#"></a>
<h4 class="field-label">403</h4>
Forbidden
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">404</h4>
Not Found
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">500</h4>
Internal Server error
<a href="#ErrResponse">ErrResponse</a>
</div> <!-- method -->
<hr/>
<div class="method"><a name="jobCreator"/>
<div class="method-path">
<a class="up" href="#__Methods">Up</a>
<pre class="post"><code class="huge"><span class="http-method">post</span> /jobs</code></pre></div>
<div class="method-summary">Add new job (<span class="nickname">jobCreator</span>)</div>
<div class="method-notes">adds new Job in Weles using recipe passed in YAML format.</div>
<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>multipart/form-data</code></li>
</ul>
<h3 class="field-label">Form parameters</h3>
<div class="field-items">
<div class="param">yamlfile (required)</div>
<div class="param-desc"><span class="param-type">Form Parameter</span> — is Job description yaml file. </div>
</div> <!-- field-items -->
<h3 class="field-label">Return type</h3>
<div class="return-type">
<a href="#JobID">JobID</a>
</div>
<!--Todo: process Response Object and its headers, schema, examples -->
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>{ }</code></pre>
<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Responses</h3>
<h4 class="field-label">201</h4>
Created
<a href="#JobID">JobID</a>
<h4 class="field-label">415</h4>
Unsupported media type
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">422</h4>
Unprocessable entity
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">500</h4>
Internal Server error
<a href="#ErrResponse">ErrResponse</a>
</div> <!-- method -->
<hr/>
<div class="method"><a name="jobLister"/>
<div class="method-path">
<a class="up" href="#__Methods">Up</a>
<pre class="post"><code class="huge"><span class="http-method">post</span> /jobs/list</code></pre></div>
<div class="method-summary">List jobs with filter and sort features (<span class="nickname">jobLister</span>)</div>
<div class="method-notes">JobLister returns information on filtered Weles Jobs.</div>
<h3 class="field-label">Consumes</h3>
This API call consumes the following media types via the <span class="header">Content-Type</span> request header:
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Request body</h3>
<div class="field-items">
<div class="param">jobFilterAndSort <a href="#JobFilterAndSort">JobFilterAndSort</a> (optional)</div>
<div class="param-desc"><span class="param-type">Body Parameter</span> — Job Filter and Sort object. </div>
</div> <!-- field-items -->
<h3 class="field-label">Query parameters</h3>
<div class="field-items">
<div class="param">after (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — JobID of the last element from previous page. format: uint64</div><div class="param">before (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — JobID of first element from next page. format: uint64</div><div class="param">limit (optional)</div>
<div class="param-desc"><span class="param-type">Query Parameter</span> — Custom page limit. Denotes number of JobInfo structures that will be returned. format: int32</div>
</div> <!-- field-items -->
<h3 class="field-label">Return type</h3>
<div class="return-type">
array[<a href="#JobInfo">JobInfo</a>]
</div>
<!--Todo: process Response Object and its headers, schema, examples -->
<h3 class="field-label">Example data</h3>
<div class="example-data-content-type">Content-Type: application/json</div>
<pre class="example"><code>[ {
"jobID" : { },
"created" : "2000-01-23T04:56:07.000+00:00",
"name" : "name",
"updated" : "2000-01-23T04:56:07.000+00:00",
"status" : { },
"info" : "info"
}, {
"jobID" : { },
"created" : "2000-01-23T04:56:07.000+00:00",
"name" : "name",
"updated" : "2000-01-23T04:56:07.000+00:00",
"status" : { },
"info" : "info"
} ]</code></pre>
<h3 class="field-label">Produces</h3>
This API call produces the following media types according to the <span class="header">Accept</span> request header;
the media type will be conveyed by the <span class="header">Content-Type</span> response header.
<ul>
<li><code>application/json</code></li>
</ul>
<h3 class="field-label">Responses</h3>
<h4 class="field-label">200</h4>
OK
<h4 class="field-label">206</h4>
Partial Content
<h4 class="field-label">400</h4>
Bad Request
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">404</h4>
Not Found
<a href="#ErrResponse">ErrResponse</a>
<h4 class="field-label">500</h4>
Internal Server error
<a href="#ErrResponse">ErrResponse</a>
</div> <!-- method -->
<hr/>
<h2><a name="__Models">Models</a></h2>
[ Jump to <a href="#__Methods">Methods</a> ]
<h3>Table of Contents</h3>
<ol>
<li><a href="#ArtifactAlias"><code>ArtifactAlias</code> - </a></li>
<li><a href="#ArtifactDescription"><code>ArtifactDescription</code> - </a></li>
<li><a href="#ArtifactFilter"><code>ArtifactFilter</code> - </a></li>
<li><a href="#ArtifactFilterAndSort"><code>ArtifactFilterAndSort</code> - </a></li>
<li><a href="#ArtifactPath"><code>ArtifactPath</code> - </a></li>
<li><a href="#ArtifactSortBy"><code>ArtifactSortBy</code> - </a></li>
<li><a href="#ArtifactSorter"><code>ArtifactSorter</code> - </a></li>
<li><a href="#ArtifactStatus"><code>ArtifactStatus</code> - </a></li>
<li><a href="#ArtifactType"><code>ArtifactType</code> - </a></li>
<li><a href="#ArtifactURI"><code>ArtifactURI</code> - </a></li>
<li><a href="#ErrResponse"><code>ErrResponse</code> - </a></li>
<li><a href="#JobFilter"><code>JobFilter</code> - </a></li>
<li><a href="#JobFilterAndSort"><code>JobFilterAndSort</code> - </a></li>
<li><a href="#JobID"><code>JobID</code> - </a></li>
<li><a href="#JobInfo"><code>JobInfo</code> - </a></li>
<li><a href="#JobSortBy"><code>JobSortBy</code> - </a></li>
<li><a href="#JobSorter"><code>JobSorter</code> - </a></li>
<li><a href="#JobStatus"><code>JobStatus</code> - </a></li>
<li><a href="#SortOrder"><code>SortOrder</code> - </a></li>
<li><a href="#ArtifactInfo"><code>ArtifactInfo</code> - </a></li>
</ol>
<div class="model">
<h3><a name="ArtifactAlias"><code>ArtifactAlias</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is an alternative name of an artifact.</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactDescription"><code>ArtifactDescription</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>contains information needed to create new artifact in ArtifactDB.</div>
<div class="field-items">
<div class="param">JobID (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobID">JobID</a></span> specifies Job for which artifact was created. </div>
<div class="param">Type (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactType">ArtifactType</a></span> </div>
<div class="param">Alias (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactAlias">ArtifactAlias</a></span> </div>
<div class="param">URI (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactURI">ArtifactURI</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactFilter"><code>ArtifactFilter</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is used to filter results from ArtifactDB.</div>
<div class="field-items">
<div class="param">JobID (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobID">array[JobID]</a></span> </div>
<div class="param">Type (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactType">array[ArtifactType]</a></span> </div>
<div class="param">Status (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactStatus">array[ArtifactStatus]</a></span> </div>
<div class="param">Alias (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactAlias">array[ArtifactAlias]</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactFilterAndSort"><code>ArtifactFilterAndSort</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>Data for filtering and sorting Weles Jobs lists.</div>
<div class="field-items">
<div class="param">Filter (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactFilter">ArtifactFilter</a></span> </div>
<div class="param">Sorter (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactSorter">ArtifactSorter</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactPath"><code>ArtifactPath</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>describes path to artifact in ArtifactDB filesystem.</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactSortBy"><code>ArtifactSortBy</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>denotes the key for sorting list of all artifacts.</p>
<ul>
<li>ID - sorting by artifact ID.</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactSorter"><code>ArtifactSorter</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>defines the key for sorting as well as direction of sorting.
When ArtifactSorter is empty, artifacts are sorted by ID, Ascending.</div>
<div class="field-items">
<div class="param">SortBy (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactSortBy">ArtifactSortBy</a></span> </div>
<div class="param">SortOrder (optional)</div><div class="param-desc"><span class="param-type"><a href="#SortOrder">SortOrder</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactStatus"><code>ArtifactStatus</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>describes artifact status and availability.</p>
<ul>
<li>
<p>DOWNLOADING - artifact is currently being downloaded.</p>
</li>
<li>
<p>READY - artifact has been downloaded and is ready to use.</p>
</li>
<li>
<p>FAILED - file is not available for use (e.g. download failed).</p>
</li>
<li>
<p>PENDING - artifact download has not started yet.</p>
</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactType"><code>ArtifactType</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>denotes type and function of an artifact.</p>
<ul>
<li>
<p>IMAGE - image file.</p>
</li>
<li>
<p>RESULT - all outputs, files built during tests, etc.</p>
</li>
<li>
<p>TEST - additional files uploaded by user for conducting test.</p>
</li>
<li>
<p>YAML - yaml file describing Weles Job.</p>
</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactURI"><code>ArtifactURI</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is used to identify artifact's source.</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ErrResponse"><code>ErrResponse</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is a standard error response containing information about the error. It consists of error type and message.</div>
<div class="field-items">
<div class="param">type (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> </div>
<div class="param">message (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobFilter"><code>JobFilter</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is used to filter Weles Jobs.</div>
<div class="field-items">
<div class="param">JobID (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobID">array[JobID]</a></span> </div>
<div class="param">Name (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">array[String]</a></span> </div>
<div class="param">CreatedAfter (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> format: date-time</div>
<div class="param">CreatedBefore (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> format: date-time</div>
<div class="param">UpdatedAfter (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> format: date-time</div>
<div class="param">UpdatedBefore (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> format: date-time</div>
<div class="param">Status (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobStatus">array[JobStatus]</a></span> </div>
<div class="param">Info (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">array[String]</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobFilterAndSort"><code>JobFilterAndSort</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>Data for filtering and sorting Weles Jobs lists.</div>
<div class="field-items">
<div class="param">Filter (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobFilter">JobFilter</a></span> </div>
<div class="param">Sorter (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobSorter">JobSorter</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobID"><code>JobID</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>is a unique identifier for Weles Job.</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobInfo"><code>JobInfo</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>contains information about a Job available for public API.</div>
<div class="field-items">
<div class="param">jobID (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobID">JobID</a></span> is a unique Job identifier </div>
<div class="param">name (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> is the Job name acquired from yaml file during Job creation. </div>
<div class="param">created (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> is the Job creation time in UTC. format: date-time</div>
<div class="param">updated (optional)</div><div class="param-desc"><span class="param-type"><a href="#DateTime">Date</a></span> is the time of latest Jobs' status modification. format: date-time</div>
<div class="param">status (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobStatus">JobStatus</a></span> specifies current state of the Job. </div>
<div class="param">info (optional)</div><div class="param-desc"><span class="param-type"><a href="#string">String</a></span> provides additional information about current state, e.g. cause of failure </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobSortBy"><code>JobSortBy</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>denotes key for sorting Jobs list. Jobs are sorted by ID (Ascending) by default.
You can sort jobs additionaly by</p>
<ul>
<li>
<p>CreatedDate - sorting by date of creation of the weles job.</p>
</li>
<li>
<p>UpdatedDate - sorting by date of update of the weles job.</p>
</li>
<li>
<p>JobStatus - sorting by the Job Status. Descending order will sort in the order JobStatuses are listed in the docs (from NEW at the start to CANCELED at the end). Ascending will reverse this order.
When sorting is applied, and there are many jobs with the same date/status, they will be sorted by JobID (Ascending)</p>
</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobSorter"><code>JobSorter</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>defines the key for sorting as well as direction of sorting.</div>
<div class="field-items">
<div class="param">SortBy (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobSortBy">JobSortBy</a></span> </div>
<div class="param">SortOrder (optional)</div><div class="param-desc"><span class="param-type"><a href="#SortOrder">SortOrder</a></span> </div>
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="JobStatus"><code>JobStatus</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>specifies state of the Job.</p>
<ul>
<li>
<p>NEW - The new Job has been created.</p>
</li>
<li>
<p>PARSING - Provided yaml file is being parsed and interpreted.</p>
</li>
<li>
<p>DOWNLOADING - Images and/or files required for the test are being downloaded.</p>
</li>
<li>
<p>WAITING - Job is waiting for Boruta worker.</p>
</li>
<li>
<p>RUNNING - Job is being executed.</p>
</li>
<li>
<p>COMPLETED - Job is completed. This is terminal state.</p>
</li>
<li>
<p>FAILED - Job execution has failed. This is terminal state.</p>
</li>
<li>
<p>CANCELED -Job has been canceled with API call. This is terminal state.</p>
</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="SortOrder"><code>SortOrder</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'><p>denotes direction of sorting of weles jobs or artifacts.</p>
<ul>
<li>
<p>Ascending - from oldest to newest.</p>
</li>
<li>
<p>Descending - from newest to oldest.</p>
</li>
</ul>
</div>
<div class="field-items">
</div> <!-- field-items -->
</div>
<div class="model">
<h3><a name="ArtifactInfo"><code>ArtifactInfo</code> - </a> <a class="up" href="#__Models">Up</a></h3>
<div class='model-description'>describes single artifact stored in ArtifactDB.</div>
<div class="field-items">
<div class="param">JobID (optional)</div><div class="param-desc"><span class="param-type"><a href="#JobID">JobID</a></span> specifies Job for which artifact was created. </div>
<div class="param">Type (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactType">ArtifactType</a></span> </div>
<div class="param">Alias (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactAlias">ArtifactAlias</a></span> </div>
<div class="param">URI (optional)</div><div class="param-desc"><span class="param-type"><a href="#ArtifactURI">ArtifactURI</a></span> </div>
</div> <!-- field-items -->
</div>
</body>
</html>
|