Field Squared API Services

<back to all web services

ApiTrafficLogDetails

Returns all details of an individual log entry, including payload

The following routes are available for this service:
GET/{WorkspaceId}/ApiTrafficLog/Payload/{EntryId}
import 'package:servicestack/servicestack.dart';

/**
* Returns all details of an individual log entry, including payload
*/
class ApiTrafficLogDetails implements IConvertible
{
    String? WorkspaceId;
    String? EntryId;

    ApiTrafficLogDetails({this.WorkspaceId,this.EntryId});
    ApiTrafficLogDetails.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        WorkspaceId = json['WorkspaceId'];
        EntryId = json['EntryId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'WorkspaceId': WorkspaceId,
        'EntryId': EntryId
    };

    getTypeName() => "ApiTrafficLogDetails";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
    'ApiTrafficLogDetails': TypeInfo(TypeOf.Class, create:() => ApiTrafficLogDetails()),
});

Dart ApiTrafficLogDetails 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 /{WorkspaceId}/ApiTrafficLog/Payload/{EntryId} HTTP/1.1 
Host: dev.fieldsquared.com 
Accept: text/jsv