{"openapi":"3.1.0","info":{"title":"PDF to HTML Parser","description":"Convert PDF uploads to reflowable paragraph HTML (same output as the peer-review-assistant Text view).","version":"0.1.0"},"paths":{"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Health Health Get"}}}}}}},"/convert":{"post":{"summary":"Convert","operationId":"convert_convert_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_convert_convert_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConvertResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/extract-text":{"post":{"summary":"Extract Text","operationId":"extract_text_extract_text_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_text_extract_text_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractTextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_convert_convert_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_convert_convert_post"},"Body_extract_text_extract_text_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_extract_text_extract_text_post"},"ConvertResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"page_count":{"type":"integer","title":"Page Count"},"word_count":{"type":"integer","title":"Word Count"},"html":{"type":"string","title":"Html"}},"type":"object","required":["filename","page_count","word_count","html"],"title":"ConvertResponse"},"ExtractTextResponse":{"properties":{"filename":{"type":"string","title":"Filename"},"page_count":{"type":"integer","title":"Page Count"},"pages":{"items":{"$ref":"#/components/schemas/PageText"},"type":"array","title":"Pages"}},"type":"object","required":["filename","page_count","pages"],"title":"ExtractTextResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"PageText":{"properties":{"page":{"type":"integer","title":"Page"},"text":{"type":"string","title":"Text"}},"type":"object","required":["page","text"],"title":"PageText"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}