| All Verbs | /{Brand}/upload/{TemplateGuid}/{FileNameGuid} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class UploadRequest extends RequestBase
{
public String TemplateGuid = null;
public String FileNameGuid = null;
public String getTemplateGuid() { return TemplateGuid; }
public UploadRequest setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
public String getFileNameGuid() { return FileNameGuid; }
public UploadRequest setFileNameGuid(String value) { this.FileNameGuid = value; return this; }
}
public static class RequestBase extends DtoBase
{
}
public static class DtoBase
{
public Brand Brand = null;
public Brand getBrand() { return Brand; }
public DtoBase setBrand(Brand value) { this.Brand = value; return this; }
}
public static enum Brand
{
Desktop,
Hp,
Kyocera,
NeaScan,
Samsung,
FujiXerox,
Ta,
Utax,
Epson,
ScanFront400,
Sharp,
Ricoh,
FujiFilm;
}
public static class UploadResponse extends ResponseBase
{
public Boolean InError = null;
public String ErrorMessage = null;
public String TemplateGuid = null;
public Boolean isInError() { return InError; }
public UploadResponse setInError(Boolean value) { this.InError = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public UploadResponse setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getTemplateGuid() { return TemplateGuid; }
public UploadResponse setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
}
public static class ResponseBase extends DtoBase
{
public String SelectedUiLanguage = null;
public String svSession = null;
public String Title = null;
public String PageTip = null;
public Boolean NewBrowser = null;
public Boolean ScanFront400TA = null;
public Boolean ScanFront400UTAX = null;
public String getSelectedUiLanguage() { return SelectedUiLanguage; }
public ResponseBase setSelectedUiLanguage(String value) { this.SelectedUiLanguage = value; return this; }
public String getSvSession() { return svSession; }
public ResponseBase setSvSession(String value) { this.svSession = value; return this; }
public String getTitle() { return Title; }
public ResponseBase setTitle(String value) { this.Title = value; return this; }
public String getPageTip() { return PageTip; }
public ResponseBase setPageTip(String value) { this.PageTip = value; return this; }
public Boolean isNewBrowser() { return NewBrowser; }
public ResponseBase setNewBrowser(Boolean value) { this.NewBrowser = value; return this; }
public Boolean isScanFront400TA() { return ScanFront400TA; }
public ResponseBase setScanFront400TA(Boolean value) { this.ScanFront400TA = value; return this; }
public Boolean isScanFront400UTAX() { return ScanFront400UTAX; }
public ResponseBase setScanFront400UTAX(Boolean value) { this.ScanFront400UTAX = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=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.