Skip to content

Commit ce05014

Browse files
trustification-ci-bot[bot]carlosthe19916github-merge-queue[bot]
authored
✨ update client/openapi/trustd.yaml (#362) (#371)
Signed-off-by: GitHub <[email protected]> Signed-off-by: Cherry Picker <[email protected]> Co-authored-by: Carlos Feria <[email protected]> Co-authored-by: github-merge-queue[bot] <github-merge-queue[bot]@users.noreply.github.com>
1 parent f662748 commit ce05014

File tree

1 file changed

+126
-66
lines changed

1 file changed

+126
-66
lines changed

client/openapi/trustd.yaml

+126-66
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
license:
66
name: Apache License, Version 2.0
77
identifier: Apache-2.0
8-
version: 0.2.1
8+
version: 0.2.6
99
paths:
1010
/.well-known/trustify:
1111
get:
@@ -230,6 +230,7 @@ paths:
230230
get:
231231
tags:
232232
- analysis
233+
summary: Retrieve SBOM components (packages) by a complex search.
233234
operationId: searchComponent
234235
parameters:
235236
- name: q
@@ -266,37 +267,52 @@ paths:
266267
minimum: 0
267268
- name: ancestors
268269
in: query
270+
description: |-
271+
The level of ancestors to return.
272+
273+
Zero, the default, meaning none.
269274
required: false
270275
schema:
271276
type: integer
272277
format: int64
273278
minimum: 0
274279
- name: descendants
275280
in: query
281+
description: |-
282+
The level of descendants to return.
283+
284+
Zero, the default, meaning none.
276285
required: false
277286
schema:
278287
type: integer
279288
format: int64
280289
minimum: 0
281290
- name: relationships
282291
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.
283297
required: false
284298
schema:
285-
type: array
286-
items:
287-
$ref: '#/components/schemas/Relationship'
288-
uniqueItems: true
299+
type: string
289300
responses:
290301
'200':
291-
description: Retrieve component(s) root components by name, pURL, or CPE.
302+
description: Retrieved component(s) located by search
292303
content:
293304
application/json:
294305
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
296311
/api/v2/analysis/component/{key}:
297312
get:
298313
tags:
299314
- analysis
315+
summary: Retrieve SBOM components (packages) by name, Package URL, or CPE.
300316
operationId: getComponent
301317
parameters:
302318
- name: key
@@ -339,37 +355,52 @@ paths:
339355
minimum: 0
340356
- name: ancestors
341357
in: query
358+
description: |-
359+
The level of ancestors to return.
360+
361+
Zero, the default, meaning none.
342362
required: false
343363
schema:
344364
type: integer
345365
format: int64
346366
minimum: 0
347367
- name: descendants
348368
in: query
369+
description: |-
370+
The level of descendants to return.
371+
372+
Zero, the default, meaning none.
349373
required: false
350374
schema:
351375
type: integer
352376
format: int64
353377
minimum: 0
354378
- name: relationships
355379
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.
356385
required: false
357386
schema:
358-
type: array
359-
items:
360-
$ref: '#/components/schemas/Relationship'
361-
uniqueItems: true
387+
type: string
362388
responses:
363389
'200':
364-
description: Retrieve component(s) root components by name, pURL, or CPE.
390+
description: Retrieved component(s) located by name, pURL, or CPE
365391
content:
366392
application/json:
367393
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}:
370400
get:
371401
tags:
372402
- analysis
403+
summary: Render an SBOM graph
373404
operationId: renderSbomGraph
374405
parameters:
375406
- name: sbom
@@ -378,27 +409,46 @@ paths:
378409
required: true
379410
schema:
380411
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
381420
responses:
382421
'200':
383-
description: A graphviz dot file of the SBOM graph
422+
description: A rendered version of the SBOM graph in the format requested
384423
content:
385424
text/plain:
386425
schema:
387426
type: string
427+
'401':
428+
description: The user did not provide valid authentication credentials
429+
'403':
430+
description: The user lacks the required permission
388431
'404':
389432
description: The SBOM was not found
433+
'415':
434+
description: Unsupported rendering format
390435
/api/v2/analysis/status:
391436
get:
392437
tags:
393438
- analysis
439+
summary: Get the status of the analysis service.
394440
operationId: status
395441
responses:
396442
'200':
397-
description: Analysis status.
443+
description: Analysis status
398444
content:
399445
application/json:
400446
schema:
401447
$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
402452
/api/v2/dataset:
403453
post:
404454
tags:
@@ -2535,6 +2585,30 @@ components:
25352585
severity:
25362586
$ref: '#/components/schemas/Severity'
25372587
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.
25382612
OrganizationDetails:
25392613
allOf:
25402614
- $ref: '#/components/schemas/OrganizationHead'
@@ -2667,56 +2741,6 @@ components:
26672741
type: integer
26682742
format: int64
26692743
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
27202744
PaginatedResults_ImporterReport:
27212745
type: object
27222746
required:
@@ -2793,6 +2817,42 @@ components:
27932817
type: integer
27942818
format: int64
27952819
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
27962856
PaginatedResults_ProductSummary:
27972857
type: object
27982858
required:

0 commit comments

Comments
 (0)