Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update client/openapi/trustd.yaml #321

Merged
merged 1 commit into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
275 changes: 169 additions & 106 deletions client/openapi/trustd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,25 @@ paths:
description: The tool request was invalid
'404':
description: The tool was not found
/api/v2/analysis/component/{key}:
get:
tags:
- analysis
operationId: getComponent
parameters:
- name: key
in: path
description: provide component name, URL-encoded pURL, or CPE itself
required: true
schema:
type: string
responses:
'200':
description: Retrieve component(s) root components by name, pURL, or CPE.
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedResults_BaseSummary'
/api/v2/analysis/dep:
get:
tags:
Expand Down Expand Up @@ -503,7 +522,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DepSummary'
$ref: '#/components/schemas/PaginatedResults_DepSummary'
/api/v2/analysis/dep/{key}:
get:
tags:
Expand All @@ -522,7 +541,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/DepSummary'
$ref: '#/components/schemas/PaginatedResults_DepSummary'
/api/v2/analysis/root-component:
get:
tags:
Expand Down Expand Up @@ -567,7 +586,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/AncestorSummary'
$ref: '#/components/schemas/PaginatedResults_AncestorSummary'
/api/v2/analysis/root-component/{key}:
get:
tags:
Expand All @@ -576,17 +595,17 @@ paths:
parameters:
- name: key
in: path
description: provide component name or URL-encoded pURL itself
description: provide component name, URL-encoded pURL, or CPE itself
required: true
schema:
type: string
responses:
'200':
description: Retrieve component(s) root components by name or pURL.
description: Retrieve component(s) root components by name, pURL, or CPE.
content:
application/json:
schema:
$ref: '#/components/schemas/AncestorSummary'
$ref: '#/components/schemas/PaginatedResults_AncestorSummary'
/api/v2/analysis/status:
get:
tags:
Expand Down Expand Up @@ -2413,6 +2432,44 @@ components:
version:
type: string
AncestorSummary:
allOf:
- $ref: '#/components/schemas/BaseSummary'
- type: object
required:
- ancestors
properties:
ancestors:
type: array
items:
$ref: '#/components/schemas/AncNode'
BasePurlDetails:
allOf:
- $ref: '#/components/schemas/BasePurlHead'
- type: object
required:
- versions
properties:
versions:
type: array
items:
$ref: '#/components/schemas/VersionedPurlSummary'
BasePurlHead:
type: object
required:
- uuid
- purl
properties:
purl:
$ref: '#/components/schemas/Purl'
description: The actual base PURL
uuid:
type: string
format: uuid
description: The ID of the base PURL
BasePurlSummary:
allOf:
- $ref: '#/components/schemas/BasePurlHead'
BaseSummary:
type: object
required:
- sbom_id
Expand All @@ -2425,12 +2482,7 @@ components:
- document_id
- product_name
- product_version
- ancestors
properties:
ancestors:
type: array
items:
$ref: '#/components/schemas/AncNode'
cpe:
type: array
items:
Expand All @@ -2455,33 +2507,6 @@ components:
type: string
version:
type: string
BasePurlDetails:
allOf:
- $ref: '#/components/schemas/BasePurlHead'
- type: object
required:
- versions
properties:
versions:
type: array
items:
$ref: '#/components/schemas/VersionedPurlSummary'
BasePurlHead:
type: object
required:
- uuid
- purl
properties:
purl:
$ref: '#/components/schemas/Purl'
description: The actual base PURL
uuid:
type: string
format: uuid
description: The ID of the base PURL
BasePurlSummary:
allOf:
- $ref: '#/components/schemas/BasePurlHead'
BinaryByteSize:
type: string
ChatMessage:
Expand Down Expand Up @@ -2691,48 +2716,16 @@ components:
version:
type: string
DepSummary:
type: object
required:
- sbom_id
- node_id
- purl
- cpe
- name
- version
- published
- document_id
- product_name
- product_version
- deps
properties:
cpe:
type: array
items:
$ref: '#/components/schemas/Cpe'
deps:
type: array
items:
$ref: '#/components/schemas/DepNode'
document_id:
type: string
name:
type: string
node_id:
type: string
product_name:
type: string
product_version:
type: string
published:
type: string
purl:
type: array
items:
$ref: '#/components/schemas/Purl'
sbom_id:
type: string
version:
type: string
allOf:
- $ref: '#/components/schemas/BaseSummary'
- type: object
required:
- deps
properties:
deps:
type: array
items:
$ref: '#/components/schemas/DepNode'
ExternalReferenceQuery:
type: object
properties:
Expand Down Expand Up @@ -3052,6 +3045,29 @@ components:
type: integer
format: int64
minimum: 0
PaginatedResults_AncestorSummary:
type: object
required:
- items
- total
properties:
items:
type: array
items:
allOf:
- $ref: '#/components/schemas/BaseSummary'
- type: object
required:
- ancestors
properties:
ancestors:
type: array
items:
$ref: '#/components/schemas/AncNode'
total:
type: integer
format: int64
minimum: 0
PaginatedResults_BasePurlSummary:
type: object
required:
Expand All @@ -3067,6 +3083,56 @@ components:
type: integer
format: int64
minimum: 0
PaginatedResults_BaseSummary:
type: object
required:
- items
- total
properties:
items:
type: array
items:
type: object
required:
- sbom_id
- node_id
- purl
- cpe
- name
- version
- published
- document_id
- product_name
- product_version
properties:
cpe:
type: array
items:
$ref: '#/components/schemas/Cpe'
document_id:
type: string
name:
type: string
node_id:
type: string
product_name:
type: string
product_version:
type: string
published:
type: string
purl:
type: array
items:
$ref: '#/components/schemas/Purl'
sbom_id:
type: string
version:
type: string
total:
type: integer
format: int64
minimum: 0
PaginatedResults_ConversationSummary:
type: object
required:
Expand Down Expand Up @@ -3094,6 +3160,29 @@ components:
type: integer
format: int64
minimum: 0
PaginatedResults_DepSummary:
type: object
required:
- items
- total
properties:
items:
type: array
items:
allOf:
- $ref: '#/components/schemas/BaseSummary'
- type: object
required:
- deps
properties:
deps:
type: array
items:
$ref: '#/components/schemas/DepNode'
total:
type: integer
format: int64
minimum: 0
PaginatedResults_ImporterReport:
type: object
required:
Expand Down Expand Up @@ -3518,7 +3607,6 @@ components:
- base
- advisories
- licenses
- relationships
properties:
advisories:
type: array
Expand All @@ -3530,31 +3618,6 @@ components:
type: array
items:
$ref: '#/components/schemas/PurlLicenseSummary'
relationships:
type: object
additionalProperties:
type: array
items:
type: string
propertyNames:
type: string
enum:
- contained_by
- dependency_of
- dev_dependency_of
- optional_dependency_of
- provided_dependency_of
- test_dependency_of
- runtime_dependency_of
- example_of
- generated_from
- ancestor_of
- variant_of
- build_tool_of
- dev_tool_of
- described_by
- package_of
- undefined
version:
$ref: '#/components/schemas/VersionedPurlHead'
PurlHead:
Expand Down
Loading
Loading