| 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
}
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}/ApiTrafficLog HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/jsv