Field Squared API Services

<back to all web services

ApiTrafficLogs

Returns recent log entries
Pagination - /?recstart=0&reccount=1

The following routes are available for this service:
GET/{Workspace}/ApiTrafficLog
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Field2Office.API.Model.Integration
Imports Field2Office.DomainObjects.Logs

Namespace Global

    Namespace Field2Office.API.Model.Integration

        '''<Summary>
        '''Returns recent log entriesPagination - /?recstart=0&reccount=1
        '''</Summary>
        Public Partial Class ApiTrafficLogs
            Public Sub New()
                Entries = New List(Of ApiLogEntry)
            End Sub

            Public Overridable Property Workspace As String
            Public Overridable Property Entries As List(Of ApiLogEntry)
            Public Overridable Property RecordsAvailable As Long
        End Class
    End Namespace

    Namespace Field2Office.DomainObjects.Logs

        Public Partial Class ApiLogEntry
            Public Overridable Property Id As String
            Public Overridable Property RuleName As String
            Public Overridable Property [Date] As String
            Public Overridable Property Workspace As String
            Public Overridable Property Url As String
            Public Overridable Property Method As String
            Public Overridable Property Payload As String
            Public Overridable Property Direction As String
        End Class
    End Namespace
End Namespace

VB.NET ApiTrafficLogs DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /{Workspace}/ApiTrafficLog HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/csv