5
5
license :
6
6
name : Apache License, Version 2.0
7
7
identifier : Apache-2.0
8
- version : 0.2.1
8
+ version : 0.2.6
9
9
paths :
10
10
/.well-known/trustify :
11
11
get :
@@ -230,6 +230,7 @@ paths:
230
230
get :
231
231
tags :
232
232
- analysis
233
+ summary : Retrieve SBOM components (packages) by a complex search.
233
234
operationId : searchComponent
234
235
parameters :
235
236
- name : q
@@ -266,37 +267,52 @@ paths:
266
267
minimum : 0
267
268
- name : ancestors
268
269
in : query
270
+ description : |-
271
+ The level of ancestors to return.
272
+
273
+ Zero, the default, meaning none.
269
274
required : false
270
275
schema :
271
276
type : integer
272
277
format : int64
273
278
minimum : 0
274
279
- name : descendants
275
280
in : query
281
+ description : |-
282
+ The level of descendants to return.
283
+
284
+ Zero, the default, meaning none.
276
285
required : false
277
286
schema :
278
287
type : integer
279
288
format : int64
280
289
minimum : 0
281
290
- name : relationships
282
291
in : query
292
+ description : |-
293
+ A set of relationships to filter for, deserialized from a
294
+ comma-delimited string
295
+
296
+ An empty set, the default, meaning all relationships.
283
297
required : false
284
298
schema :
285
- type : array
286
- items :
287
- $ref : ' #/components/schemas/Relationship'
288
- uniqueItems : true
299
+ type : string
289
300
responses :
290
301
' 200 ' :
291
- description : Retrieve component(s) root components by name, pURL, or CPE.
302
+ description : Retrieved component(s) located by search
292
303
content :
293
304
application/json :
294
305
schema :
295
- $ref : ' #/components/schemas/PaginatedResults_BaseSummary'
306
+ $ref : ' #/components/schemas/PaginatedResults_Node'
307
+ ' 401 ' :
308
+ description : The user did not provide valid authentication credentials
309
+ ' 403 ' :
310
+ description : The user lacks the required permission
296
311
/api/v2/analysis/component/{key} :
297
312
get :
298
313
tags :
299
314
- analysis
315
+ summary : Retrieve SBOM components (packages) by name, Package URL, or CPE.
300
316
operationId : getComponent
301
317
parameters :
302
318
- name : key
@@ -339,37 +355,52 @@ paths:
339
355
minimum : 0
340
356
- name : ancestors
341
357
in : query
358
+ description : |-
359
+ The level of ancestors to return.
360
+
361
+ Zero, the default, meaning none.
342
362
required : false
343
363
schema :
344
364
type : integer
345
365
format : int64
346
366
minimum : 0
347
367
- name : descendants
348
368
in : query
369
+ description : |-
370
+ The level of descendants to return.
371
+
372
+ Zero, the default, meaning none.
349
373
required : false
350
374
schema :
351
375
type : integer
352
376
format : int64
353
377
minimum : 0
354
378
- name : relationships
355
379
in : query
380
+ description : |-
381
+ A set of relationships to filter for, deserialized from a
382
+ comma-delimited string
383
+
384
+ An empty set, the default, meaning all relationships.
356
385
required : false
357
386
schema :
358
- type : array
359
- items :
360
- $ref : ' #/components/schemas/Relationship'
361
- uniqueItems : true
387
+ type : string
362
388
responses :
363
389
' 200 ' :
364
- description : Retrieve component(s) root components by name, pURL, or CPE.
390
+ description : Retrieved component(s) located by name, pURL, or CPE
365
391
content :
366
392
application/json :
367
393
schema :
368
- $ref : ' #/components/schemas/PaginatedResults_BaseSummary'
369
- /api/v2/analysis/sbom/{sbom}/render :
394
+ $ref : ' #/components/schemas/PaginatedResults_Node'
395
+ ' 401 ' :
396
+ description : The user did not provide valid authentication credentials
397
+ ' 403 ' :
398
+ description : The user lacks the required permission
399
+ /api/v2/analysis/sbom/{sbom}/render.{ext} :
370
400
get :
371
401
tags :
372
402
- analysis
403
+ summary : Render an SBOM graph
373
404
operationId : renderSbomGraph
374
405
parameters :
375
406
- name : sbom
@@ -378,27 +409,46 @@ paths:
378
409
required : true
379
410
schema :
380
411
type : string
412
+ - name : ext
413
+ in : path
414
+ description : Renderer to use
415
+ required : true
416
+ schema :
417
+ type : string
418
+ enum :
419
+ - gv
381
420
responses :
382
421
' 200 ' :
383
- description : A graphviz dot file of the SBOM graph
422
+ description : A rendered version of the SBOM graph in the format requested
384
423
content :
385
424
text/plain :
386
425
schema :
387
426
type : string
427
+ ' 401 ' :
428
+ description : The user did not provide valid authentication credentials
429
+ ' 403 ' :
430
+ description : The user lacks the required permission
388
431
' 404 ' :
389
432
description : The SBOM was not found
433
+ ' 415 ' :
434
+ description : Unsupported rendering format
390
435
/api/v2/analysis/status :
391
436
get :
392
437
tags :
393
438
- analysis
439
+ summary : Get the status of the analysis service.
394
440
operationId : status
395
441
responses :
396
442
' 200 ' :
397
- description : Analysis status.
443
+ description : Analysis status
398
444
content :
399
445
application/json :
400
446
schema :
401
447
$ref : ' #/components/schemas/AnalysisStatus'
448
+ ' 401 ' :
449
+ description : The user did not provide valid authentication credentials
450
+ ' 403 ' :
451
+ description : The user lacks the required permission
402
452
/api/v2/dataset :
403
453
post :
404
454
tags :
@@ -2535,6 +2585,30 @@ components:
2535
2585
severity :
2536
2586
$ref : ' #/components/schemas/Severity'
2537
2587
description : The severity of the message
2588
+ Node :
2589
+ allOf :
2590
+ - $ref : ' #/components/schemas/BaseSummary'
2591
+ - type : object
2592
+ properties :
2593
+ ancestors :
2594
+ type :
2595
+ - array
2596
+ - ' null'
2597
+ items :
2598
+ $ref : ' #/components/schemas/Node'
2599
+ description : All ancestors of this node. [`None`] if not requested on this level.
2600
+ descendants :
2601
+ type :
2602
+ - array
2603
+ - ' null'
2604
+ items :
2605
+ $ref : ' #/components/schemas/Node'
2606
+ description : All descendents of this node. [`None`] if not requested on this level.
2607
+ relationship :
2608
+ oneOf :
2609
+ - type : ' null'
2610
+ - $ref : ' #/components/schemas/Relationship'
2611
+ description : The relationship the node has to it's containing node, if any.
2538
2612
OrganizationDetails :
2539
2613
allOf :
2540
2614
- $ref : ' #/components/schemas/OrganizationHead'
@@ -2667,56 +2741,6 @@ components:
2667
2741
type : integer
2668
2742
format : int64
2669
2743
minimum : 0
2670
- PaginatedResults_BaseSummary :
2671
- type : object
2672
- required :
2673
- - items
2674
- - total
2675
- properties :
2676
- items :
2677
- type : array
2678
- items :
2679
- type : object
2680
- required :
2681
- - sbom_id
2682
- - node_id
2683
- - purl
2684
- - cpe
2685
- - name
2686
- - version
2687
- - published
2688
- - document_id
2689
- - product_name
2690
- - product_version
2691
- properties :
2692
- cpe :
2693
- type : array
2694
- items :
2695
- $ref : ' #/components/schemas/Cpe'
2696
- document_id :
2697
- type : string
2698
- name :
2699
- type : string
2700
- node_id :
2701
- type : string
2702
- product_name :
2703
- type : string
2704
- product_version :
2705
- type : string
2706
- published :
2707
- type : string
2708
- purl :
2709
- type : array
2710
- items :
2711
- $ref : ' #/components/schemas/Purl'
2712
- sbom_id :
2713
- type : string
2714
- version :
2715
- type : string
2716
- total :
2717
- type : integer
2718
- format : int64
2719
- minimum : 0
2720
2744
PaginatedResults_ImporterReport :
2721
2745
type : object
2722
2746
required :
@@ -2793,6 +2817,42 @@ components:
2793
2817
type : integer
2794
2818
format : int64
2795
2819
minimum : 0
2820
+ PaginatedResults_Node :
2821
+ type : object
2822
+ required :
2823
+ - items
2824
+ - total
2825
+ properties :
2826
+ items :
2827
+ type : array
2828
+ items :
2829
+ allOf :
2830
+ - $ref : ' #/components/schemas/BaseSummary'
2831
+ - type : object
2832
+ properties :
2833
+ ancestors :
2834
+ type :
2835
+ - array
2836
+ - ' null'
2837
+ items :
2838
+ $ref : ' #/components/schemas/Node'
2839
+ description : All ancestors of this node. [`None`] if not requested on this level.
2840
+ descendants :
2841
+ type :
2842
+ - array
2843
+ - ' null'
2844
+ items :
2845
+ $ref : ' #/components/schemas/Node'
2846
+ description : All descendents of this node. [`None`] if not requested on this level.
2847
+ relationship :
2848
+ oneOf :
2849
+ - type : ' null'
2850
+ - $ref : ' #/components/schemas/Relationship'
2851
+ description : The relationship the node has to it's containing node, if any.
2852
+ total :
2853
+ type : integer
2854
+ format : int64
2855
+ minimum : 0
2796
2856
PaginatedResults_ProductSummary :
2797
2857
type : object
2798
2858
required :
0 commit comments