Required role: | REGISUserRole |
POST | /Audit |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports regis.ClassLibrary.Requests
Imports regis.ClassLibrary.Responses
Namespace Global
Namespace regis.ClassLibrary.Requests
Public Partial Class AuditRequest
Public Overridable Property uuid As String
Public Overridable Property created_since_date As Date
Public Overridable Property controller As String
Public Overridable Property action As String
Public Overridable Property item_id As String
End Class
End Namespace
Namespace regis.ClassLibrary.Responses
Public Partial Class AuditResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property uuid As String
Public Overridable Property ip_address As String
Public Overridable Property url As String
Public Overridable Property controller As String
Public Overridable Property action As String
Public Overridable Property item_id As String
Public Overridable Property timestamp As Date
End Class
Public Partial Class AuditsResponse
Public Sub New()
audits = New List(Of AuditResponse)
End Sub
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property audits As List(Of AuditResponse)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Audit HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"uuid":"String","created_since_date":"0001-01-01T00:00:00.0000000","controller":"String","action":"String","item_id":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"audits":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"uuid":"String","ip_address":"String","url":"String","controller":"String","action":"String","item_id":"String","timestamp":"0001-01-01T00:00:00.0000000"}]}