-
Notifications
You must be signed in to change notification settings - Fork 3
/
openapi.yaml
95 lines (95 loc) · 2.37 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
---
openapi: 3.0.3
info:
title: CBOMkit API
description: Service for generating and retrieving CBOMs
version: 1.2.0
paths:
/api:
get:
tags:
- Status
summary: Health test
description: Health test endpoint
responses:
"200":
description: OK
content:
application/json:
schema:
example:
status: ok
/api/v1/cbom/last/{limit}:
get:
tags:
- CBOM Resource
summary: Return recently generated CBOMs from the repository
description: Returns a list of the most recently generated CBOMs. The length
of the list can by specified via the optional 'limit' parameter.
parameters:
- name: limit
in: path
required: true
schema:
format: int32
type: integer
responses:
"200":
description: OK
/api/v1/cbom/{projectIdentifier}:
get:
tags:
- CBOM Resource
description: Get CBOM
parameters:
- name: projectIdentifier
in: path
required: true
schema:
type: string
responses:
"200":
description: OK
/api/v1/compliance/check:
get:
tags:
- Compliance Resource
summary: Verify the compliance of a stored CBOM identified by it's PURL against
a policy
description: "Returns the JSON sent by the Regulator API, containing various\
\ information about the compliance of the CBOM for a set policy."
parameters:
- name: commit
in: query
schema:
type: string
- name: gitUrl
in: query
schema:
type: string
- name: policyIdentifier
in: query
schema:
type: string
responses:
"200":
description: OK
post:
tags:
- Compliance Resource
summary: Verify the compliance of a provided CBOM against a policy
description: "Returns the JSON sent by the Regulator API, containing various\
\ information about the compliance of the CBOM for a set policy."
parameters:
- name: policyIdentifier
in: query
schema:
type: string
requestBody:
content:
application/json:
schema:
type: string
responses:
"200":
description: OK