| GET,OPTIONS | /v1/qbo/status |
|---|
import 'package:servicestack/servicestack.dart';
class QboStatusResponse implements IConvertible
{
bool? Configured;
bool? Connected;
bool? NeedsReconnect;
bool? AutoSync;
String? Environment;
String? RealmId;
String? CompanyName;
ResponseStatus? ResponseStatus;
QboStatusResponse({this.Configured,this.Connected,this.NeedsReconnect,this.AutoSync,this.Environment,this.RealmId,this.CompanyName,this.ResponseStatus});
QboStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Configured = json['Configured'];
Connected = json['Connected'];
NeedsReconnect = json['NeedsReconnect'];
AutoSync = json['AutoSync'];
Environment = json['Environment'];
RealmId = json['RealmId'];
CompanyName = json['CompanyName'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Configured': Configured,
'Connected': Connected,
'NeedsReconnect': NeedsReconnect,
'AutoSync': AutoSync,
'Environment': Environment,
'RealmId': RealmId,
'CompanyName': CompanyName,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "QboStatusResponse";
TypeContext? context = _ctx;
}
class QboStatusRequest implements IConvertible
{
QboStatusRequest();
QboStatusRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "QboStatusRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
'QboStatusResponse': TypeInfo(TypeOf.Class, create:() => QboStatusResponse()),
'QboStatusRequest': TypeInfo(TypeOf.Class, create:() => QboStatusRequest()),
});
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 /v1/qbo/status HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"Configured":false,"Connected":false,"NeedsReconnect":false,"AutoSync":false,"Environment":"String","RealmId":"String","CompanyName":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}