| 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 .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /xml/reply/AdminQueryScriptRequest HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AdminQueryScriptRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<QueryFilter>String</QueryFilter>
<QueryName>String</QueryName>
<QueryOrder>String</QueryOrder>
<QueryParameters xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</QueryParameters>
<QueryParametersAsString>String</QueryParametersAsString>
</AdminQueryScriptRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AdminQueryScriptResults xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel"> <Data /> <Message>String</Message> <StatusCode>0</StatusCode> </AdminQueryScriptResults>