TicketUserServices

<back to all web services

AdminQueryScriptRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel

Namespace Global

    Namespace TicketUserServices.ServiceModel

        Public Partial Class AdminQueryScriptRequest
            Public Sub New()
                QueryParameters = New Dictionary(Of String, Object)
            End Sub

            Public Overridable Property QueryName As String
            Public Overridable Property QueryParametersAsString As String
            Public Overridable Property QueryParameters As Dictionary(Of String, Object)
            Public Overridable Property QueryFilter As String
            Public Overridable Property QueryOrder As String
        End Class

        Public Partial Class AdminQueryScriptResults
            Public Overridable Property Data As Object
            Public Overridable Property StatusCode As Integer
            Public Overridable Property Message As String
        End Class
    End Namespace
End Namespace

VB.NET 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

HTTP + JSON

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"}