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
import java.math.*
import java.util.*
import net.servicestack.client.*


/**
* Returns recent log entriesPagination - /?recstart=0&reccount=1
*/
open class ApiTrafficLogs
{
    var Workspace:String? = null
    var Entries:ArrayList<ApiLogEntry> = ArrayList<ApiLogEntry>()
    var RecordsAvailable:Long? = null
}

open class ApiLogEntry
{
    var Id:String? = null
    var RuleName:String? = null
    var Date:String? = null
    var Workspace:String? = null
    var Url:String? = null
    var Method:String? = null
    var Payload:String? = null
    var Direction:String? = null
}

Kotlin ApiTrafficLogs DTOs

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

HTTP + JSV

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/jsv