ScannerVision Web Server

<back to all web services

PostQuestion

Requires Authentication
The following routes are available for this service:
POST/{Brand}/question/{TemplateGuid}/{QuestionGuid}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ScannerVision.WebService.ServiceModel

Namespace Global

    Namespace ScannerVision.WebService.ServiceModel

        Public Enum Brand
            Desktop
            Hp
            Kyocera
            NeaScan
            Samsung
            FujiXerox
            Ta
            Utax
            Epson
            ScanFront400
            Sharp
            Ricoh
            FujiFilm
        End Enum

        Public Partial Class DtoBase
            Public Overridable Property Brand As Brand
        End Class

        Public Partial Class PostQuestion
            Inherits QuestionRequestDto
            Public Overridable Property QuestionValueReturned As String
            Public Overridable Property QuestionValueDisplayed As String
            Public Overridable Property SelectedFolder As String
        End Class

        Public Partial Class QuestionRequestDto
            Inherits RequestBase
            Public Overridable Property TemplateGuid As String
            Public Overridable Property QuestionGuid As String
            Public Overridable Property Parent As String
            Public Overridable Property FolderBrowser As String
        End Class

        Public Partial Class RequestBase
            Inherits DtoBase
        End Class
    End Namespace
End Namespace

VB.NET PostQuestion DTOs

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

HTTP + CSV

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/csv
Content-Type: text/csv
Content-Length: length

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