POST | /delete/ |
---|
import 'package:servicestack/servicestack.dart';
class ReturnStatus implements IConvertible
{
String? ReturnCode;
String? Message;
ReturnStatus({this.ReturnCode,this.Message});
ReturnStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ReturnCode = json['ReturnCode'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'ReturnCode': ReturnCode,
'Message': Message
};
getTypeName() => "ReturnStatus";
TypeContext? context = _ctx;
}
class DeleteResponse implements IConvertible
{
ReturnStatus? Status;
DeleteResponse({this.Status});
DeleteResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Status = JsonConverters.fromJson(json['Status'],'ReturnStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Status': JsonConverters.toJson(Status,'ReturnStatus',context!)
};
getTypeName() => "DeleteResponse";
TypeContext? context = _ctx;
}
class Delete implements IConvertible
{
String? CiamId;
String? FirstName;
String? LastName;
String? EmailAddress;
String? MobileTelephoneNumber;
Delete({this.CiamId,this.FirstName,this.LastName,this.EmailAddress,this.MobileTelephoneNumber});
Delete.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CiamId = json['CiamId'];
FirstName = json['FirstName'];
LastName = json['LastName'];
EmailAddress = json['EmailAddress'];
MobileTelephoneNumber = json['MobileTelephoneNumber'];
return this;
}
Map<String, dynamic> toJson() => {
'CiamId': CiamId,
'FirstName': FirstName,
'LastName': LastName,
'EmailAddress': EmailAddress,
'MobileTelephoneNumber': MobileTelephoneNumber
};
getTypeName() => "Delete";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
'ReturnStatus': TypeInfo(TypeOf.Class, create:() => ReturnStatus()),
'DeleteResponse': TypeInfo(TypeOf.Class, create:() => DeleteResponse()),
'Delete': TypeInfo(TypeOf.Class, create:() => Delete()),
});
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 /delete/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CiamId: String,
FirstName: String,
LastName: String,
EmailAddress: String,
MobileTelephoneNumber: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Status: { ReturnCode: String, Message: String } }