ScannerVision Web Server

<back to all web services

PostQuestion

Requires Authentication
The following routes are available for this service:
POST/{Brand}/question/{TemplateGuid}/{QuestionGuid}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class PostQuestion extends QuestionRequestDto
    {
        public String QuestionValueReturned = null;
        public String QuestionValueDisplayed = null;
        public String SelectedFolder = null;
        
        public String getQuestionValueReturned() { return QuestionValueReturned; }
        public PostQuestion setQuestionValueReturned(String value) { this.QuestionValueReturned = value; return this; }
        public String getQuestionValueDisplayed() { return QuestionValueDisplayed; }
        public PostQuestion setQuestionValueDisplayed(String value) { this.QuestionValueDisplayed = value; return this; }
        public String getSelectedFolder() { return SelectedFolder; }
        public PostQuestion setSelectedFolder(String value) { this.SelectedFolder = value; return this; }
    }

    public static class QuestionRequestDto extends RequestBase
    {
        public String TemplateGuid = null;
        public String QuestionGuid = null;
        public String Parent = null;
        public String FolderBrowser = null;
        
        public String getTemplateGuid() { return TemplateGuid; }
        public QuestionRequestDto setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
        public String getQuestionGuid() { return QuestionGuid; }
        public QuestionRequestDto setQuestionGuid(String value) { this.QuestionGuid = value; return this; }
        public String getParent() { return Parent; }
        public QuestionRequestDto setParent(String value) { this.Parent = value; return this; }
        public String getFolderBrowser() { return FolderBrowser; }
        public QuestionRequestDto setFolderBrowser(String value) { this.FolderBrowser = 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;
    }

}

Java PostQuestion DTOs

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

HTTP + JSV

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

POST /{Brand}/question/{TemplateGuid}/{QuestionGuid} HTTP/1.1 
Host: buildmax.org 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	QuestionValueReturned: String,
	QuestionValueDisplayed: String,
	SelectedFolder: String,
	TemplateGuid: String,
	QuestionGuid: String,
	Parent: String,
	FolderBrowser: String,
	Brand: Desktop
}