File size: 1,756 Bytes
4437ddb | 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 | openapi: 3.1.0
info:
title: DOXA development service
version: "0.1.0"
servers:
- url: http://127.0.0.1:9010
paths:
/health:
get:
responses:
"200":
description: Development service and artifact revisions
/v1/predict:
post:
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [claim_type, text]
properties:
claim_type:
type: string
text:
type: string
minLength: 1
maxLength: 6000
context:
type: string
maxLength: 6000
responses:
"200":
description: Decision, abstention or out-of-scope with optional extractive evidence
"400":
description: Invalid input
"413":
description: Body larger than 1 MiB
"415":
description: JSON required
/v1/scorecard:
post:
requestBody:
required: true
content:
application/json:
schema:
type: object
required: [pairs]
properties:
pairs:
type: array
minItems: 1
maxItems: 200
items:
type: object
required: [pair_id, left, right]
responses:
"200":
description: Audited numerator, denominator, uncertainty bounds and exclusions
"400":
description: Invalid input
"413":
description: Body larger than 1 MiB
"415":
description: JSON required
|