| POST,OPTIONS | /v1/kiosk/help |
|---|
import 'package:servicestack/servicestack.dart';
class KioskHelpResponse implements IConvertible
{
ResponseStatus? ResponseStatus;
bool? Sent;
KioskHelpResponse({this.ResponseStatus,this.Sent});
KioskHelpResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
Sent = json['Sent'];
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
'Sent': Sent
};
getTypeName() => "KioskHelpResponse";
TypeContext? context = _ctx;
}
class KioskHelpRequest implements IConvertible
{
String? ApiKey;
String? LocationId;
KioskHelpRequest({this.ApiKey,this.LocationId});
KioskHelpRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ApiKey = json['ApiKey'];
LocationId = json['LocationId'];
return this;
}
Map<String, dynamic> toJson() => {
'ApiKey': ApiKey,
'LocationId': LocationId
};
getTypeName() => "KioskHelpRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'KioskHelpResponse': TypeInfo(TypeOf.Class, create:() => KioskHelpResponse()),
'KioskHelpRequest': TypeInfo(TypeOf.Class, create:() => KioskHelpRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/kiosk/help HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"ApiKey":"00000000000000000000000000000000","LocationId":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Sent":false}