API ask - Timtroll/Queues GitHub Wiki
Ask action requests === Example === POST/GET request url: "/ask" { action: ask, md5: ccd648ff6a3af3294871244153b05cc8 (md5 hash for indentify current job) }
answer
{ status: 100, (status according http standard - 100 continue job) message: 'sdf sdf sdf asdf ' (last message from executing pipe) } or { status: 200, (status according http standard - 200 - finished job) message: 'sdf sdf sdf asdf ', (last message from executing job) output_dir: output_files: [file.jpg, file1.jpg] (list of output files) }
or ERROR
{ status: 400 } (status according http standard - bad request ) { status: 404 } (status according http standard - asking job is not exist ) { status: 410 } (status according http standard - asking job finished ) { status: 415 } (status according http standard - asking job could not convert asking type of media ) or { status: 503, (status according http standard) reason: 'description of error' (description of error during conversion) }