-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi.diagnostics.patch.yaml
More file actions
31 lines (29 loc) · 1.22 KB
/
Copy pathopenapi.diagnostics.patch.yaml
File metadata and controls
31 lines (29 loc) · 1.22 KB
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
# Additive OpenAPI patch fragment for diagnostics bundles.
# Merge this file into openapi.yaml at build time.
# All operations require bearerAuth (inherited from the base spec security requirement).
tags:
- name: Diagnostics
description: Governed host diagnostics evidence bundles and their supporting metadata
paths:
/v2/diagnostics/bundles:
post:
operationId: recordDiagnosticsBundle
summary: Record a DiagnosticsBundle
description: Records a governed host diagnostics evidence bundle containing timed probe metadata, artifact hashes, and declared redaction posture. Idempotent on `id`.
tags: [Diagnostics]
requestBody:
required: true
content:
application/json:
schema: { $ref: './schemas/DiagnosticsBundle.json' }
responses:
'200':
description: DiagnosticsBundle recorded successfully.
'400':
description: Request body is malformed JSON.
'401':
description: Missing or invalid authentication token.
'403':
description: Authenticated subject is not permitted to record diagnostics bundles.
'422':
description: Request body is valid JSON but fails schema validation.