documents

Generate Work Order From Project

Generate a work order from a project in the database.

This endpoint fetches project details and operations from the database and generates a work order document.

Args: request: Work order generation request with project_id db_service: Injected database service

Returns: Response with generation status and output

Raises: HTTPException: If generation fails or project not found

post/documents/generate-work-order

Request

  • Base URL: https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.jeevyfabrication.com/documents/generate-work-order
  • Auth: none declared

Request body

project_idinteger required
output_formatstring
document_namestring nullable
include_client_infoboolean

Response

Successful Response

successboolean required

Whether generation was successful

document_typestring required

Type of document generated

file_pathstring nullable

Path to generated file (if saved)

file_urlstring nullable

URL to download the file

html_contentstring nullable

HTML content (if format=html)

messagestring required

Status message

Changes

No recorded changes to this operation across all 1 revision of this API.