ScannerVision Web Server

<back to all web services

GetJsonPicklistItems

Requires Authentication
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class GetJsonPicklistItems extends JsonDto
    {
        public String TemplateGuid = null;
        public String Guid = null;
        public HashMap<String,String> Answers = null;
        
        public String getTemplateGuid() { return TemplateGuid; }
        public GetJsonPicklistItems setTemplateGuid(String value) { this.TemplateGuid = value; return this; }
        public String getGuid() { return Guid; }
        public GetJsonPicklistItems setGuid(String value) { this.Guid = value; return this; }
        public HashMap<String,String> getAnswers() { return Answers; }
        public GetJsonPicklistItems setAnswers(HashMap<String,String> value) { this.Answers = value; return this; }
    }

    public static class JsonDto
    {
        
    }

    public static class JsonPicklistItemsResponse extends JsonDto
    {
        public String Guid = null;
        public ArrayList<JsonPicklistItem> Items = null;
        
        public String getGuid() { return Guid; }
        public JsonPicklistItemsResponse setGuid(String value) { this.Guid = value; return this; }
        public ArrayList<JsonPicklistItem> getItems() { return Items; }
        public JsonPicklistItemsResponse setItems(ArrayList<JsonPicklistItem> value) { this.Items = value; return this; }
    }

    public static class JsonPicklistItem
    {
        public String Key = null;
        public String Value = null;
        
        public String getKey() { return Key; }
        public JsonPicklistItem setKey(String value) { this.Key = value; return this; }
        public String getValue() { return Value; }
        public JsonPicklistItem setValue(String value) { this.Value = value; return this; }
    }

}

Java GetJsonPicklistItems DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /json/reply/GetJsonPicklistItems HTTP/1.1 
Host: buildmax.org 
Accept: application/json
Content-Type: application/json
Content-Length: length

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

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