ScannerVision Web Server

<back to all web services

GetJsonPicklistItems

Requires Authentication
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ScannerVision.WebService.Json.Dto

Namespace Global

    Namespace ScannerVision.WebService.Json.Dto

        Public Partial Class GetJsonPicklistItems
            Inherits JsonDto
            Public Overridable Property TemplateGuid As String
            Public Overridable Property Guid As String
            Public Overridable Property Answers As IDictionary(Of String, String)
        End Class

        Public Partial Class JsonDto
        End Class

        Public Partial Class JsonPicklistItem
            Public Overridable Property Key As String
            Public Overridable Property Value As String
        End Class

        Public Partial Class JsonPicklistItemsResponse
            Inherits JsonDto
            Public Sub New()
                Items = New JsonPicklistItem(){}
            End Sub

            Public Overridable Property Guid As String
            Public Overridable Property Items As JsonPicklistItem()
        End Class
    End Namespace
End Namespace

VB.NET GetJsonPicklistItems 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 /jsonl/reply/GetJsonPicklistItems HTTP/1.1 
Host: buildmax.org 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

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

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