import 'package:servicestack/servicestack.dart';
class RepairWordDocumentResponse implements IRepairWordDocumentResponse, IConvertible
{
/**
* Contains the registration ID of the generated (corporate identity) document
*/
// @ApiMember(Description="Contains the registration ID of the generated (corporate identity) document", IsRequired=true)
String? DocumentID;
RepairWordDocumentResponse({this.DocumentID});
RepairWordDocumentResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
DocumentID = json['DocumentID'];
return this;
}
Map<String, dynamic> toJson() => {
'DocumentID': DocumentID
};
getTypeName() => "RepairWordDocumentResponse";
TypeContext? context = _ctx;
}
/**
* Generate new or update a (corporate identity) document based on an existing document registration.
*/
// @Api(Description="Generate new or update a (corporate identity) document based on an existing document registration.")
class RepairWordDocument implements IRepairWordDocument, IConvertible
{
/**
* ID of the current document registration
*/
// @ApiMember(Description="ID of the current document registration", IsRequired=true)
String? RegisteredDocumentID;
RepairWordDocument({this.RegisteredDocumentID});
RepairWordDocument.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
RegisteredDocumentID = json['RegisteredDocumentID'];
return this;
}
Map<String, dynamic> toJson() => {
'RegisteredDocumentID': RegisteredDocumentID
};
getTypeName() => "RepairWordDocument";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
'RepairWordDocumentResponse': TypeInfo(TypeOf.Class, create:() => RepairWordDocumentResponse()),
'RepairWordDocument': TypeInfo(TypeOf.Class, create:() => RepairWordDocument()),
});
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.
POST /csv/reply/RepairWordDocument HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"RegisteredDocumentID":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"DocumentID":"00000000-0000-0000-0000-000000000000"}