-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenapi.yaml
57 lines (57 loc) · 1.76 KB
/
openapi.yaml
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
openapi: 3.0.3
info:
title: CBOMkit-theia
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 0.0.1
paths:
/api/v1/image:
post:
summary: Generate CBOM from a Container Image
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
image:
description: Identifier for the Container Image
example: "nginx"
type: string
plugins:
type: array
example:
- "javasecurity"
- "secrets"
- "certificates"
description: Plugins to activate
items:
type: string
description: Name of a plugin
bom:
description: CBOM to verify/expand
$ref: "https://raw.githubusercontent.com/CycloneDX/specification/master/schema/bom-1.6.schema.json"
required:
- image
responses:
'200':
description: OK
content:
application/vnd.cyclonedx+json; version=1.6:
schema:
$ref: "https://raw.githubusercontent.com/CycloneDX/specification/master/schema/bom-1.6.schema.json"
default:
description: Unexpected error
content:
application/json:
schema:
type: object
properties:
error:
type: string
components:
schemas:
BOM:
$ref: "https://raw.githubusercontent.com/CycloneDX/specification/master/schema/bom-1.6.schema.json"