All Verbs | /alerts/getbyuser |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Nwa.Model.Tipos.nwa.alerts
Imports Nwa.Model.Tipos.nwa.core
Imports Nwa.Model.Contexto.nwa.alerts
Namespace Global
Namespace Nwa.Model.Contexto.nwa.alerts
Public Partial Class SystemAlert
Public Overridable Property GenerationType As Long
Public Overridable Property GenerationTypeDesc As String
Public Overridable Property AlertOrigin As Long
Public Overridable Property AlertOriginDesc As String
Public Overridable Property Message As String
Public Overridable Property Longitude As Double
Public Overridable Property Latitude As Double
Public Overridable Property ModifiedUser As String
Public Overridable Property ModifiedDate As Date
Public Overridable Property ModifiedDateDesc As String
Public Overridable Property Notes As String
Public Overridable Property Fullinfo As String
Public Overridable Property Status As Long
Public Overridable Property StatusDesc As String
End Class
End Namespace
Namespace Nwa.Model.Tipos.nwa.alerts
Public Partial Class GetAlertsByUserRQ
Public Overridable Property User As String
Public Overridable Property Status As Nullable(Of Long)
End Class
Public Partial Class GetAlertsByUserRS
Inherits CoreRS
Public Sub New()
Data = New List(Of SystemAlert)
End Sub
Public Overridable Property Data As List(Of SystemAlert)
End Class
End Namespace
Namespace Nwa.Model.Tipos.nwa.core
Public Partial Class CoreRS
Public Overridable Property Code As String
Public Overridable Property ErrorMessage As String
Public Overridable Property ErrorStackTrace As String
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /alerts/getbyuser HTTP/1.1
Host: ws.jimsnwa.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"User":"String","Status":0}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Data":[{"GenerationType":0,"GenerationTypeDesc":"String","AlertOrigin":0,"AlertOriginDesc":"String","Message":"String","Longitude":0,"Latitude":0,"ModifiedUser":"String","ModifiedDate":"0001-01-01T00:00:00.0000000","ModifiedDateDesc":"String","Notes":"String","Fullinfo":"String","Status":0,"StatusDesc":"String"}],"Code":"String","ErrorMessage":"String","ErrorStackTrace":"String"}