| POST | /api/4PSBC/ImportProject |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
/**
* Import project record vanuit 4PS
*/
@Api(Description="Import project record vanuit 4PS")
public static class IDB_4PSBC_Import_Project
{
/**
* Message header
*/
@ApiMember(Description="Message header", IsRequired=true)
public Header Header = null;
/**
* Message data
*/
@ApiMember(Description="Message data", IsRequired=true)
public Data_Project Data = null;
public Header getHeader() { return Header; }
public IDB_4PSBC_Import_Project setHeader(Header value) { this.Header = value; return this; }
public Data_Project getData() { return Data; }
public IDB_4PSBC_Import_Project setData(Data_Project value) { this.Data = value; return this; }
}
public static class Header
{
/**
* Inhoud van het bericht
*/
@ApiMember(Description="Inhoud van het bericht")
public String Contains = null;
/**
* Datum aanmaak bericht
*/
@ApiMember(Description="Datum aanmaak bericht")
public String Date = null;
/**
* ID voor het bericht
*/
@ApiMember(Description="ID voor het bericht")
public String MessageID = null;
/**
* Verzender van het bericht
*/
@ApiMember(Description="Verzender van het bericht")
public String Sender = null;
public String getContains() { return Contains; }
public Header setContains(String value) { this.Contains = value; return this; }
public String getDate() { return Date; }
public Header setDate(String value) { this.Date = value; return this; }
public String getMessageID() { return MessageID; }
public Header setMessageID(String value) { this.MessageID = value; return this; }
public String getSender() { return Sender; }
public Header setSender(String value) { this.Sender = value; return this; }
}
public static class Data_Project
{
public UUID systemId = null;
public UUID digiOfficeId = null;
public UUID companyId = null;
public String no = null;
public String description = null;
public String description2 = null;
public String visitAddress = null;
public String visitAddress2 = null;
public String visitAddressPostCode = null;
public String visitAddressCity = null;
public String visitAddressCountryRegionId = null;
public String address = null;
public String postCode = null;
public String city = null;
public String countryRegionId = null;
public String projectStatus = null;
public Date startingDate = null;
public Date endingDate = null;
public UUID contactId = null;
public UUID getSystemId() { return systemId; }
public Data_Project setSystemId(UUID value) { this.systemId = value; return this; }
public UUID getDigiOfficeId() { return digiOfficeId; }
public Data_Project setDigiOfficeId(UUID value) { this.digiOfficeId = value; return this; }
public UUID getCompanyId() { return companyId; }
public Data_Project setCompanyId(UUID value) { this.companyId = value; return this; }
public String getNo() { return no; }
public Data_Project setNo(String value) { this.no = value; return this; }
public String getDescription() { return description; }
public Data_Project setDescription(String value) { this.description = value; return this; }
public String getDescription2() { return description2; }
public Data_Project setDescription2(String value) { this.description2 = value; return this; }
public String getVisitAddress() { return visitAddress; }
public Data_Project setVisitAddress(String value) { this.visitAddress = value; return this; }
public String getVisitAddress2() { return visitAddress2; }
public Data_Project setVisitAddress2(String value) { this.visitAddress2 = value; return this; }
public String getVisitAddressPostCode() { return visitAddressPostCode; }
public Data_Project setVisitAddressPostCode(String value) { this.visitAddressPostCode = value; return this; }
public String getVisitAddressCity() { return visitAddressCity; }
public Data_Project setVisitAddressCity(String value) { this.visitAddressCity = value; return this; }
public String getVisitAddressCountryRegionId() { return visitAddressCountryRegionId; }
public Data_Project setVisitAddressCountryRegionId(String value) { this.visitAddressCountryRegionId = value; return this; }
public String getAddress() { return address; }
public Data_Project setAddress(String value) { this.address = value; return this; }
public String getPostCode() { return postCode; }
public Data_Project setPostCode(String value) { this.postCode = value; return this; }
public String getCity() { return city; }
public Data_Project setCity(String value) { this.city = value; return this; }
public String getCountryRegionId() { return countryRegionId; }
public Data_Project setCountryRegionId(String value) { this.countryRegionId = value; return this; }
public String getProjectStatus() { return projectStatus; }
public Data_Project setProjectStatus(String value) { this.projectStatus = value; return this; }
public Date getStartingDate() { return startingDate; }
public Data_Project setStartingDate(Date value) { this.startingDate = value; return this; }
public Date getEndingDate() { return endingDate; }
public Data_Project setEndingDate(Date value) { this.endingDate = value; return this; }
public UUID getContactId() { return contactId; }
public Data_Project setContactId(UUID value) { this.contactId = value; return this; }
}
public static class IDB_4PSBC_Response_Project
{
/**
* Header of the response
*/
@ApiMember(Description="Header of the response", IsRequired=true)
public Header Header = null;
/**
* Response body
*/
@ApiMember(Description="Response body", IsRequired=true)
public Response_Project Response = null;
public Header getHeader() { return Header; }
public IDB_4PSBC_Response_Project setHeader(Header value) { this.Header = value; return this; }
public Response_Project getResponse() { return Response; }
public IDB_4PSBC_Response_Project setResponse(Response_Project value) { this.Response = value; return this; }
}
public static class Response_Project
{
/**
* Reponse status (Ok/Error)
*/
@ApiMember(Description="Reponse status (Ok/Error)", IsRequired=true)
public String Status = null;
/**
* Errors summary
*/
@ApiMember(Description="Errors summary")
public String Errors = null;
/**
* ID of the project in DigiOffice
*/
@ApiMember(Description="ID of the project in DigiOffice", IsRequired=true)
public String DigiOfficeProjectID = null;
/**
* GlobalID (digiOfficeId) of the project in DigiOffice
*/
@ApiMember(Description="GlobalID (digiOfficeId) of the project in DigiOffice", IsRequired=true)
public UUID DigiOfficeGlobalID = null;
public String getStatus() { return Status; }
public Response_Project setStatus(String value) { this.Status = value; return this; }
public String getErrors() { return Errors; }
public Response_Project setErrors(String value) { this.Errors = value; return this; }
public String getDigiOfficeProjectID() { return DigiOfficeProjectID; }
public Response_Project setDigiOfficeProjectID(String value) { this.DigiOfficeProjectID = value; return this; }
public UUID getDigiOfficeGlobalID() { return DigiOfficeGlobalID; }
public Response_Project setDigiOfficeGlobalID(UUID value) { this.DigiOfficeGlobalID = value; return this; }
}
}
Java 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"}}