POST | /v1/NewCarDelta | Updates the new car delta |
---|
import 'package:servicestack/servicestack.dart';
class DeltaDataResponse implements IConvertible
{
bool? deltaStatus;
String? deltaStatusDate;
DeltaDataResponse({this.deltaStatus,this.deltaStatusDate});
DeltaDataResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
deltaStatus = json['deltaStatus'];
deltaStatusDate = json['deltaStatusDate'];
return this;
}
Map<String, dynamic> toJson() => {
'deltaStatus': deltaStatus,
'deltaStatusDate': deltaStatusDate
};
getTypeName() => "DeltaDataResponse";
TypeContext? context = _ctx;
}
class UpdateNewCarDeltaDataRequest implements IPost, IConvertible
{
String? resumeDelta;
UpdateNewCarDeltaDataRequest({this.resumeDelta});
UpdateNewCarDeltaDataRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
resumeDelta = json['resumeDelta'];
return this;
}
Map<String, dynamic> toJson() => {
'resumeDelta': resumeDelta
};
getTypeName() => "UpdateNewCarDeltaDataRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'uat_api_vehicle_mgt_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'DeltaDataResponse': TypeInfo(TypeOf.Class, create:() => DeltaDataResponse()),
'UpdateNewCarDeltaDataRequest': TypeInfo(TypeOf.Class, create:() => UpdateNewCarDeltaDataRequest()),
});
Dart UpdateNewCarDeltaDataRequest DTOs
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/NewCarDelta HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"resumeDelta":"String"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"deltaStatus":false,"deltaStatusDate":"String"}