A simple print server that allows you to print to a local printer using a rest API.
A error response will always have a success field set to false and a message field with a error message.
{
"success": false,
"message": "Error message"
}GET /
Returns the status of the print server
{
"success": true|false,
"message": "Server is running"
}GET /queue
Returns the current print queue
{
"success": true|false,
"jobs": [
{
"PrinterName": "Microsoft Print to PDF",
"DocumentNumber": "{{uuid}}",
"PrinterStatuses": [], //Array of printer statuses
"IsPrinting": true|false,
"IsError": true|false,
"IsPaused": true|false,
}
]
}POST /print
Prints a document to the printer.
{
"success": true|false,
"jobId": "{{uuid}}",
}