Skip to content

Commit 18c2421

Browse files
authored
Merge pull request #216 from vpetersson/compliance-document-discovery
feat: add compliance document discovery
2 parents 50d1cba + 6e4d6c9 commit 18c2421

1 file changed

Lines changed: 95 additions & 0 deletions

File tree

spec/openapi.yaml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,38 @@ paths:
242242
$ref: "#/components/responses/404-object-by-id-not-found"
243243
tags:
244244
- CLE
245+
/components:
246+
get:
247+
description: Returns a list of TEA components. Note that multiple components may match.
248+
operationId: queryTeaComponents
249+
parameters:
250+
- $ref: "#/components/parameters/page-offset"
251+
- $ref: "#/components/parameters/page-size"
252+
- $ref: "#/components/parameters/id-type"
253+
- $ref: "#/components/parameters/id-value"
254+
responses:
255+
'200':
256+
$ref: "#/components/responses/paginated-component"
257+
'400':
258+
$ref: "#/components/responses/400-invalid-request"
259+
tags:
260+
- TEA Component
261+
/componentReleases:
262+
get:
263+
description: Returns a list of TEA component releases. Note that multiple component releases may match.
264+
operationId: queryTeaComponentReleases
265+
parameters:
266+
- $ref: "#/components/parameters/page-offset"
267+
- $ref: "#/components/parameters/page-size"
268+
- $ref: "#/components/parameters/id-type"
269+
- $ref: "#/components/parameters/id-value"
270+
responses:
271+
'200':
272+
$ref: "#/components/responses/paginated-component-release"
273+
'400':
274+
$ref: "#/components/responses/400-invalid-request"
275+
tags:
276+
- TEA Component Release
245277
/componentRelease/{uuid}:
246278
get:
247279
description: Get the TEA Component Release with its latest collection
@@ -523,6 +555,33 @@ components:
523555
- CPE
524556
- TEI
525557
- PURL
558+
- COMPLIANCE_DOCUMENT
559+
compliance-document-type:
560+
type: string
561+
description: >
562+
Well-known compliance document types. When idType is COMPLIANCE_DOCUMENT,
563+
the idValue SHOULD be one of these values.
564+
enum:
565+
- SOC_2_TYPE_I
566+
- SOC_2_TYPE_II
567+
- SOC_3
568+
- ISO_27001
569+
- ISO_27017
570+
- ISO_27018
571+
- ISO_27701
572+
- ISO_42001
573+
- PCI_DSS
574+
- HIPAA
575+
- FedRAMP
576+
- GDPR
577+
- CSA_STAR
578+
- NIST_800_53
579+
- NIST_800_171
580+
- CMMC
581+
- HITRUST
582+
- TISAX
583+
- CYBER_ESSENTIALS
584+
- CYBER_ESSENTIALS_PLUS
526585
uuid:
527586
type: string
528587
description: A UUID
@@ -1387,6 +1446,30 @@ components:
13871446
type: array
13881447
items:
13891448
$ref: "#/components/schemas/productRelease"
1449+
1450+
paginated-component-response:
1451+
type: object
1452+
description: A paginated response containing TEA Components
1453+
allOf:
1454+
- $ref: "#/components/schemas/pagination-details"
1455+
- type: object
1456+
properties:
1457+
results:
1458+
type: array
1459+
items:
1460+
$ref: "#/components/schemas/component"
1461+
1462+
paginated-component-release-response:
1463+
type: object
1464+
description: A paginated response containing TEA Component Releases
1465+
allOf:
1466+
- $ref: "#/components/schemas/pagination-details"
1467+
- type: object
1468+
properties:
1469+
results:
1470+
type: array
1471+
items:
1472+
$ref: "#/components/schemas/release"
13901473
responses:
13911474
204-common-delete:
13921475
description: Object deleted successfully
@@ -1426,6 +1509,18 @@ components:
14261509
application/json:
14271510
schema:
14281511
$ref: "#/components/schemas/paginated-product-release-response"
1512+
paginated-component:
1513+
description: A paginated response containing TEA Components
1514+
content:
1515+
application/json:
1516+
schema:
1517+
$ref: "#/components/schemas/paginated-component-response"
1518+
paginated-component-release:
1519+
description: A paginated response containing TEA Component Releases
1520+
content:
1521+
application/json:
1522+
schema:
1523+
$ref: "#/components/schemas/paginated-component-release-response"
14291524
parameters:
14301525
# Pagination
14311526
page-offset:

0 commit comments

Comments
 (0)