Download docs/openapi.yaml from Giuliocc/doxa-methods: direct link, hf CLI and curl.
- Browser
- Download file 1.76 kB
-
https://huggingface.co/datasets/Giuliocc/doxa-methods/resolve/main/docs/openapi.yaml
- Command line
-
hf download hf://datasets/Giuliocc/doxa-methods/docs/openapi.yaml
-
curl -L -o openapi.yaml https://huggingface.co/datasets/Giuliocc/doxa-methods/resolve/main/docs/openapi.yaml
1.76 kB
| 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 | |