| GET | /{Workspace}/ApiTrafficLog |
|---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Field2Office.API.Model.Integration;
using Field2Office.DomainObjects.Logs;
namespace Field2Office.API.Model.Integration
{
///<summary>
///Returns recent log entriesPagination - /?recstart=0&reccount=1
///</summary>
public partial class ApiTrafficLogs
{
public ApiTrafficLogs()
{
Entries = new List<ApiLogEntry>{};
}
public virtual string Workspace { get; set; }
public virtual List<ApiLogEntry> Entries { get; set; }
public virtual long RecordsAvailable { get; set; }
}
}
namespace Field2Office.DomainObjects.Logs
{
public partial class ApiLogEntry
{
public virtual string Id { get; set; }
public virtual string RuleName { get; set; }
public virtual string Date { get; set; }
public virtual string Workspace { get; set; }
public virtual string Url { get; set; }
public virtual string Method { get; set; }
public virtual string Payload { get; set; }
public virtual string Direction { get; set; }
}
}
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