ScannerVision Web Server

<back to all web services

GetJsonPicklistItems

Requires Authentication
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetJsonPicklistItems : JsonDto()
{
    open var TemplateGuid:String? = null
    open var Guid:String? = null
    open var Answers:HashMap<String,String>? = null
}

open class JsonDto
{
}

open class JsonPicklistItemsResponse : JsonDto()
{
    open var Guid:String? = null
    open var Items:ArrayList<JsonPicklistItem>? = null
}

open class JsonPicklistItem
{
    open var Key:String? = null
    open var Value:String? = null
}

Kotlin GetJsonPicklistItems 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 /csv/reply/GetJsonPicklistItems HTTP/1.1 
Host: dmsshow.kyocerasolutions.cz 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

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

{"Guid":"String","Items":[{"Key":"String","Value":"String"}]}