API · 2 operationer
extract-api
Genererad ur services/extract-api/openapi.json, kontraktsversion 0.1.0. Auth-modell och anropare står i atlasen.
GET /healthz
Healthz
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | { [nyckel]: string } application/json |
POST /v1/extract
Extract
| Parameter | I | Typ | Krävs |
|---|---|---|---|
x-max-charschatt 100 000, kunskap 400 000 | header | integer | ja |
authorization | header | string | null | nej |
Kropp: string application/octet-stream
| Svar | Beskrivning | Kropp |
|---|---|---|
200 | Successful Response | ExtractResponse application/json |
401 | Unauthorized | ErrorResponse application/json |
403 | Forbidden | ErrorResponse application/json |
413 | Request Entity Too Large | ErrorResponse application/json |
415 | Unsupported Media Type | ErrorResponse application/json |
422 | Unprocessable Entity | ErrorResponse application/json |
503 | Service Unavailable | ErrorResponse application/json |
Scheman
ErrorResponse
| Fält | Typ | Krävs |
|---|---|---|
detail | { [nyckel]: integer } | string | object[] | ja |
error | string | ja |
trace_id | string | ja |
ExtractResponse
`pages` för PDF, `sheets` för XLSX och `slides` för PPTX. DOCX har inget av dem.
| Fält | Typ | Krävs |
|---|---|---|
chars | integer | ja |
extractor_version | string | ja |
format | "pdf" | "docx" | "xlsx" | "pptx" | ja |
pages | integer | null | nej |
sheets | integer | null | nej |
slides | integer | null | nej |
text | string | ja |