Test

<back to all web services

AltQueryItems

import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*


open class AltQueryItems
{
    open var name:String? = null
}

open class QueryResponseAlt<T> : IMeta
{
    open var offset:Int? = null
    open var total:Int? = null
    open var results:ArrayList<Item> = ArrayList<Item>()
    open var meta:HashMap<String,String> = HashMap<String,String>()
    open var responseStatus:ResponseStatus? = null
}

open class Item
{
    open var name:String? = null
    open var description:String? = null
}

Kotlin AltQueryItems 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/AltQueryItems HTTP/1.1 
Host: test.servicestack.net 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

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

{"offset":0,"total":0,"results":[{"name":"String","description":"String"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}