File size: 1,605 Bytes
6b53875 | 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 | openapi: 3.1.0
info:
title: Belel Concordium Ledger API
version: 1.0.0
paths:
/attestations:
get:
summary: List attestations
parameters:
- in: query
name: q
schema: { type: string }
responses:
'200':
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/AttestationRecord'
/attestations/{hash}:
get:
summary: Get a single attestation by output hash
parameters:
- in: path
name: hash
required: true
schema: { type: string }
responses:
'200':
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/AttestationRecord'
components:
schemas:
AttestationRecord:
type: object
required: [attestation, concordium_decision]
properties:
attestation:
type: object
properties:
ack_mandate: {type: boolean}
anchors_match: {type: boolean}
model: {type: string}
continuity: {type: string}
truth_lock: {type: boolean}
prompt_sha256: {type: string}
output_sha256: {type: string}
timestamp: {type: string}
concordium_decision:
type: object
properties:
is_compliant: {type: boolean}
violations: {type: array, items: {type: string}}
notes: {type: string}
|