Classify Endpoint
POST
/v1/templates/classify
const url = 'http://localhost:8080/v1/templates/classify';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"ocr_markdown":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/templates/classify \ --header 'Content-Type: application/json' \ --data '{ "ocr_markdown": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
ClassifyPayload
object
ocr_markdown
required
Ocr Markdown
string
Example generated
{ "ocr_markdown": "example"}Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Classify Endpoint V1 Templates Classify Post
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}