API put - Timtroll/Queues GitHub Wiki
Put action requests Example POST/GET request url: "/put"
{
`action: put,`
`conversion_type: pdf2jpg,` (conversion type)
`source: ./test.pdf, (source file for conversion)`
`output: /home/ouput_dir/, (output directory for result file/es)`
`quality: 100, (quality output file/es)`
`resolution: 72, (resolution output file/es in dpi)`
`password: textpass, (password for pdf file)`
`size: {`
`width: 2000, (width size of output file/es)`
`height: 2000 (height size of output file/es)`
`}`
}
answer
{
`status: 201,` (status according http standard - 201 created pipe)
`md5: ccd648ff6a3af3294871244153b05cc8` (md5 hash for indentified job)
`start_time: 1456212884` (time of starting conversion in UNIX format)
}
or ERROR
{
`status: 400,` (status according http standard - bad request )
`reason: 'Required fields does not exists in request'`
}
{ status: 404 }
(status according http standard - asking conversion type is not exist )
{ status: 415 }
(status according http standard - asking convestion type is not support )
or
{
status: 503,
(status according http standard)
reason: 'description of error'
}