{"openapi":"3.1.0","info":{"title":"SchoolFlow Document Reconstruction Engine","description":"Python AI Microservice for converting Thai PDFs and images to Word/Excel with 100% Thai fidelity","version":"1.0.0"},"paths":{"/health":{"get":{"summary":"Health Check","description":"ตรวจสอบสถานะความพร้อมของ Microservice","operationId":"health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/extract":{"post":{"summary":"Extract Document","description":"รับไฟล์เอกสาร PDF หรือรูปภาพ เพื่อวิเคราะห์ ปรับปรุงคุณภาพ และสร้าง Clean HTML","operationId":"extract_document_api_v1_extract_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_extract_document_api_v1_extract_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"Body_extract_document_api_v1_extract_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"},"target_format":{"type":"string","title":"Target Format","default":"docx"},"preset":{"type":"string","title":"Preset","default":"government"},"options":{"type":"string","title":"Options","default":"{}"}},"type":"object","required":["file"],"title":"Body_extract_document_api_v1_extract_post"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}