| GET | /{Workspace}/IntegrationLog |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Integration
Namespace Global
Namespace Field2Office.API.Model.Integration
Public Partial Class LogEntry
Public Overridable Property Id As String
Public Overridable Property WorkspaceId As String
Public Overridable Property RuleId As String
Public Overridable Property [Date] As String
Public Overridable Property Thread As String
Public Overridable Property Level As String
Public Overridable Property Name As String
Public Overridable Property Message As String
Public Overridable Property Context As String
End Class
'''<Summary>
'''Returns recent log entries, optionally filtered by log level1Pagination - /?recstart=0&reccount=1Log Levels - /?levels=WARN,ERROR
'''</Summary>
Public Partial Class WorkspaceLogs
Public Sub New()
Entries = New List(Of LogEntry)
End Sub
Public Overridable Property Workspace As String
Public Overridable Property Entries As List(Of LogEntry)
Public Overridable Property RecordsAvailable As Long
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /{Workspace}/IntegrationLog HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv