| Requires any of the roles: | Worker, Agent, Administrator |
| POST,OPTIONS | /v1/PageLog |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class PageLogResponse implements IConvertible
{
bool? Success;
ResponseStatus? ResponseStatus;
PageLogResponse({this.Success,this.ResponseStatus});
PageLogResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "PageLogResponse";
TypeContext? context = _ctx;
}
class PageLog implements IConvertible
{
int? AgentId;
String? PageName;
int? Direction;
PageLog({this.AgentId,this.PageName,this.Direction});
PageLog.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
AgentId = json['AgentId'];
PageName = json['PageName'];
Direction = json['Direction'];
return this;
}
Map<String, dynamic> toJson() => {
'AgentId': AgentId,
'PageName': PageName,
'Direction': Direction
};
getTypeName() => "PageLog";
TypeContext? context = _ctx;
}
class PageLogRequest implements IConvertible
{
PageLog? PageLog;
PageLogRequest({this.PageLog});
PageLogRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
PageLog = JsonConverters.fromJson(json['PageLog'],'PageLog',context!);
return this;
}
Map<String, dynamic> toJson() => {
'PageLog': JsonConverters.toJson(PageLog,'PageLog',context!)
};
getTypeName() => "PageLogRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'PageLogResponse': TypeInfo(TypeOf.Class, create:() => PageLogResponse()),
'PageLog': TypeInfo(TypeOf.Class, create:() => PageLog()),
'PageLogRequest': TypeInfo(TypeOf.Class, create:() => PageLogRequest()),
});
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.
POST /v1/PageLog HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
PageLog:
{
AgentId: 0,
PageName: String,
Direction: 0
}
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Success: False,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}