ScannerVision Web Server

<back to all web services

HpUploadRequest

Requires Authentication
The following routes are available for this service:
All Verbs/{Brand}/upload/{TemplateGuid}/{FileNameGuid}
All Verbs/{Brand}/upload/{TemplateGuid}/{FileNameGuid}/hpupload
import java.math.*
import java.util.*
import net.servicestack.client.*


open class HpUploadRequest : UploadRequest()
{
}

open class UploadRequest : RequestBase()
{
    var TemplateGuid:String? = null
    var FileNameGuid:String? = null
}

open class RequestBase : DtoBase()
{
}

open class DtoBase
{
    var Brand:Brand? = null
}

enum class Brand
{
    Desktop,
    Hp,
    Kyocera,
    NeaScan,
    Samsung,
    FujiXerox,
    Ta,
    Utax,
    Epson,
    ScanFront400,
    Sharp,
    Ricoh,
    FujiFilm,
}

open class UploadResponse : ResponseBase()
{
    var InError:Boolean? = null
    var ErrorMessage:String? = null
    var TemplateGuid:String? = null
}

open class ResponseBase : DtoBase()
{
    var SelectedUiLanguage:String? = null
    var svSession:String? = null
    var Title:String? = null
    var PageTip:String? = null
    var NewBrowser:Boolean? = null
    var ScanFront400TA:Boolean? = null
    var ScanFront400UTAX:Boolean? = null
}

Kotlin HpUploadRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /{Brand}/upload/{TemplateGuid}/{FileNameGuid} HTTP/1.1 
Host: buildmax.org 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"TemplateGuid":"String","FileNameGuid":"String","Brand":"Desktop"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{Unable to show example output for type 'UploadResponse' using the custom 'other' filter}No parameterless constructor defined for this object.