| GET | /{Workspace}/ApiTrafficLog |
|---|
export class ApiLogEntry
{
public Id: string;
public RuleName: string;
public Date: string;
public Workspace: string;
public Url: string;
public Method: string;
public Payload: string;
public Direction: string;
public constructor(init?: Partial<ApiLogEntry>) { (Object as any).assign(this, init); }
}
/** @description Returns recent log entriesPagination - /?recstart=0&reccount=1 */
export class ApiTrafficLogs
{
public Workspace: string;
public Entries: ApiLogEntry[];
public RecordsAvailable: number;
public constructor(init?: Partial<ApiTrafficLogs>) { (Object as any).assign(this, init); }
}
TypeScript ApiTrafficLogs DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=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