| Requires the role: | Admin | Requires the permission: | ReadData |
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class AdminQueryScriptRequest
{
public String queryName = null;
public String queryParametersAsString = null;
public HashMap<String,Object> queryParameters = null;
public String queryFilter = null;
public String queryOrder = null;
public String getQueryName() { return queryName; }
public AdminQueryScriptRequest setQueryName(String value) { this.queryName = value; return this; }
public String getQueryParametersAsString() { return queryParametersAsString; }
public AdminQueryScriptRequest setQueryParametersAsString(String value) { this.queryParametersAsString = value; return this; }
public HashMap<String,Object> getQueryParameters() { return queryParameters; }
public AdminQueryScriptRequest setQueryParameters(HashMap<String,Object> value) { this.queryParameters = value; return this; }
public String getQueryFilter() { return queryFilter; }
public AdminQueryScriptRequest setQueryFilter(String value) { this.queryFilter = value; return this; }
public String getQueryOrder() { return queryOrder; }
public AdminQueryScriptRequest setQueryOrder(String value) { this.queryOrder = value; return this; }
}
public static class AdminQueryScriptResults
{
public Object data = null;
public Integer statusCode = null;
public String message = null;
public Object getData() { return data; }
public AdminQueryScriptResults setData(Object value) { this.data = value; return this; }
public Integer getStatusCode() { return statusCode; }
public AdminQueryScriptResults setStatusCode(Integer value) { this.statusCode = value; return this; }
public String getMessage() { return message; }
public AdminQueryScriptResults setMessage(String value) { this.message = value; return this; }
}
}
Java AdminQueryScriptRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/AdminQueryScriptRequest HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"queryName":"String","queryParametersAsString":"String","queryParameters":{"String":{}},"queryFilter":"String","queryOrder":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"data":{},"statusCode":0,"message":"String"}