| POST | /api/4PSBC/ImportProject |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class Header implements IConvertible
{
/**
* Inhoud van het bericht
*/
// @ApiMember(Description="Inhoud van het bericht")
String? Contains;
/**
* Datum aanmaak bericht
*/
// @ApiMember(Description="Datum aanmaak bericht")
String? Date;
/**
* ID voor het bericht
*/
// @ApiMember(Description="ID voor het bericht")
String? MessageID;
/**
* Verzender van het bericht
*/
// @ApiMember(Description="Verzender van het bericht")
String? Sender;
Header({this.Contains,this.Date,this.MessageID,this.Sender});
Header.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Contains = json['Contains'];
Date = json['Date'];
MessageID = json['MessageID'];
Sender = json['Sender'];
return this;
}
Map<String, dynamic> toJson() => {
'Contains': Contains,
'Date': Date,
'MessageID': MessageID,
'Sender': Sender
};
getTypeName() => "Header";
TypeContext? context = _ctx;
}
class Response_Project implements IConvertible
{
/**
* Reponse status (Ok/Error)
*/
// @ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
String? Status;
/**
* Errors summary
*/
// @ApiMember(Description="Errors summary")
String? Errors;
/**
* ID of the project in DigiOffice
*/
// @ApiMember(Description="ID of the project in DigiOffice", IsRequired=true)
String? DigiOfficeProjectID;
/**
* GlobalID (digiOfficeId) of the project in DigiOffice
*/
// @ApiMember(Description="GlobalID (digiOfficeId) of the project in DigiOffice", IsRequired=true)
String? DigiOfficeGlobalID;
Response_Project({this.Status,this.Errors,this.DigiOfficeProjectID,this.DigiOfficeGlobalID});
Response_Project.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Status = json['Status'];
Errors = json['Errors'];
DigiOfficeProjectID = json['DigiOfficeProjectID'];
DigiOfficeGlobalID = json['DigiOfficeGlobalID'];
return this;
}
Map<String, dynamic> toJson() => {
'Status': Status,
'Errors': Errors,
'DigiOfficeProjectID': DigiOfficeProjectID,
'DigiOfficeGlobalID': DigiOfficeGlobalID
};
getTypeName() => "Response_Project";
TypeContext? context = _ctx;
}
class IDB_4PSBC_Response_Project implements IConvertible
{
/**
* Header of the response
*/
// @ApiMember(Description="Header of the response", IsRequired=true)
Header? Header;
/**
* Response body
*/
// @ApiMember(Description="Response body", IsRequired=true)
Response_Project? Response;
IDB_4PSBC_Response_Project({this.Header,this.Response});
IDB_4PSBC_Response_Project.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Header = JsonConverters.fromJson(json['Header'],'Header',context!);
Response = JsonConverters.fromJson(json['Response'],'Response_Project',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Header': JsonConverters.toJson(Header,'Header',context!),
'Response': JsonConverters.toJson(Response,'Response_Project',context!)
};
getTypeName() => "IDB_4PSBC_Response_Project";
TypeContext? context = _ctx;
}
class Data_Project implements IConvertible
{
String? systemId;
String? digiOfficeId;
String? companyId;
String? no;
String? description;
String? description2;
String? visitAddress;
String? visitAddress2;
String? visitAddressPostCode;
String? visitAddressCity;
String? visitAddressCountryRegionId;
String? address;
String? postCode;
String? city;
String? countryRegionId;
String? projectStatus;
DateTime? startingDate;
DateTime? endingDate;
String? contactId;
Data_Project({this.systemId,this.digiOfficeId,this.companyId,this.no,this.description,this.description2,this.visitAddress,this.visitAddress2,this.visitAddressPostCode,this.visitAddressCity,this.visitAddressCountryRegionId,this.address,this.postCode,this.city,this.countryRegionId,this.projectStatus,this.startingDate,this.endingDate,this.contactId});
Data_Project.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
systemId = json['systemId'];
digiOfficeId = json['digiOfficeId'];
companyId = json['companyId'];
no = json['no'];
description = json['description'];
description2 = json['description2'];
visitAddress = json['visitAddress'];
visitAddress2 = json['visitAddress2'];
visitAddressPostCode = json['visitAddressPostCode'];
visitAddressCity = json['visitAddressCity'];
visitAddressCountryRegionId = json['visitAddressCountryRegionId'];
address = json['address'];
postCode = json['postCode'];
city = json['city'];
countryRegionId = json['countryRegionId'];
projectStatus = json['projectStatus'];
startingDate = JsonConverters.fromJson(json['startingDate'],'DateTime',context!);
endingDate = JsonConverters.fromJson(json['endingDate'],'DateTime',context!);
contactId = json['contactId'];
return this;
}
Map<String, dynamic> toJson() => {
'systemId': systemId,
'digiOfficeId': digiOfficeId,
'companyId': companyId,
'no': no,
'description': description,
'description2': description2,
'visitAddress': visitAddress,
'visitAddress2': visitAddress2,
'visitAddressPostCode': visitAddressPostCode,
'visitAddressCity': visitAddressCity,
'visitAddressCountryRegionId': visitAddressCountryRegionId,
'address': address,
'postCode': postCode,
'city': city,
'countryRegionId': countryRegionId,
'projectStatus': projectStatus,
'startingDate': JsonConverters.toJson(startingDate,'DateTime',context!),
'endingDate': JsonConverters.toJson(endingDate,'DateTime',context!),
'contactId': contactId
};
getTypeName() => "Data_Project";
TypeContext? context = _ctx;
}
/**
* Import project record vanuit 4PS
*/
// @Api(Description="Import project record vanuit 4PS")
class IDB_4PSBC_Import_Project implements IConvertible
{
/**
* Message header
*/
// @ApiMember(Description="Message header", IsRequired=true)
Header? Header;
/**
* Message data
*/
// @ApiMember(Description="Message data", IsRequired=true)
Data_Project? Data;
IDB_4PSBC_Import_Project({this.Header,this.Data});
IDB_4PSBC_Import_Project.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Header = JsonConverters.fromJson(json['Header'],'Header',context!);
Data = JsonConverters.fromJson(json['Data'],'Data_Project',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Header': JsonConverters.toJson(Header,'Header',context!),
'Data': JsonConverters.toJson(Data,'Data_Project',context!)
};
getTypeName() => "IDB_4PSBC_Import_Project";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test_dogw.klokgroep.nl', types: <String, TypeInfo> {
'Header': TypeInfo(TypeOf.Class, create:() => Header()),
'Response_Project': TypeInfo(TypeOf.Class, create:() => Response_Project()),
'IDB_4PSBC_Response_Project': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Response_Project()),
'Data_Project': TypeInfo(TypeOf.Class, create:() => Data_Project()),
'IDB_4PSBC_Import_Project': TypeInfo(TypeOf.Class, create:() => IDB_4PSBC_Import_Project()),
});
Dart IDB_4PSBC_Import_Project 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 /api/4PSBC/ImportProject HTTP/1.1
Host: test-dogw.klokgroep.nl
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Data":{"systemId":"00000000-0000-0000-0000-000000000000","digiOfficeId":"00000000-0000-0000-0000-000000000000","companyId":"00000000-0000-0000-0000-000000000000","no":"String","description":"String","description2":"String","visitAddress":"String","visitAddress2":"String","visitAddressPostCode":"String","visitAddressCity":"String","visitAddressCountryRegionId":"String","address":"String","postCode":"String","city":"String","countryRegionId":"String","projectStatus":"String","startingDate":"0001-01-01T00:00:00.0000000","endingDate":"0001-01-01T00:00:00.0000000","contactId":"00000000-0000-0000-0000-000000000000"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Header":{"Contains":"String","Date":"String","MessageID":"String","Sender":"String"},"Response":{"Status":"String","Errors":"String","DigiOfficeProjectID":"String","DigiOfficeGlobalID":"00000000-0000-0000-0000-000000000000"}}