| POST | /api/4PSBC/ImportProject |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports DO.Synchronization.IDB_4PSBC.DTO
Namespace Global
Namespace DO.Synchronization.IDB_4PSBC.DTO
Public Partial Class Data_Project
Public Overridable Property systemId As Guid?
Public Overridable Property digiOfficeId As Guid?
Public Overridable Property companyId As Guid?
Public Overridable Property no As String
Public Overridable Property description As String
Public Overridable Property description2 As String
Public Overridable Property visitAddress As String
Public Overridable Property visitAddress2 As String
Public Overridable Property visitAddressPostCode As String
Public Overridable Property visitAddressCity As String
Public Overridable Property visitAddressCountryRegionId As String
Public Overridable Property address As String
Public Overridable Property postCode As String
Public Overridable Property city As String
Public Overridable Property countryRegionId As String
Public Overridable Property projectStatus As String
Public Overridable Property startingDate As Date?
Public Overridable Property endingDate As Date?
Public Overridable Property contactId As Guid?
End Class
Public Partial Class Header
'''<Summary>
'''Inhoud van het bericht
'''</Summary>
<ApiMember(Description:="Inhoud van het bericht")>
Public Overridable Property Contains As String
'''<Summary>
'''Datum aanmaak bericht
'''</Summary>
<ApiMember(Description:="Datum aanmaak bericht")>
Public Overridable Property [Date] As String
'''<Summary>
'''ID voor het bericht
'''</Summary>
<ApiMember(Description:="ID voor het bericht")>
Public Overridable Property MessageID As String
'''<Summary>
'''Verzender van het bericht
'''</Summary>
<ApiMember(Description:="Verzender van het bericht")>
Public Overridable Property Sender As String
End Class
'''<Summary>
'''Import project record vanuit 4PS
'''</Summary>
<Api(Description:="Import project record vanuit 4PS")>
Public Partial Class IDB_4PSBC_Import_Project
'''<Summary>
'''Message header
'''</Summary>
<ApiMember(Description:="Message header", IsRequired:=true)>
Public Overridable Property Header As Header
'''<Summary>
'''Message data
'''</Summary>
<ApiMember(Description:="Message data", IsRequired:=true)>
Public Overridable Property Data As Data_Project
End Class
Public Partial Class IDB_4PSBC_Response_Project
'''<Summary>
'''Header of the response
'''</Summary>
<ApiMember(Description:="Header of the response", IsRequired:=true)>
Public Overridable Property Header As Header
'''<Summary>
'''Response body
'''</Summary>
<ApiMember(Description:="Response body", IsRequired:=true)>
Public Overridable Property Response As Response_Project
End Class
Public Partial Class Response_Project
'''<Summary>
'''Reponse status (Ok/Error)
'''</Summary>
<ApiMember(Description:="Reponse status (Ok/Error)", IsRequired:=true)>
Public Overridable Property Status As String
'''<Summary>
'''Errors summary
'''</Summary>
<ApiMember(Description:="Errors summary")>
Public Overridable Property Errors As String
'''<Summary>
'''ID of the project in DigiOffice
'''</Summary>
<ApiMember(Description:="ID of the project in DigiOffice", IsRequired:=true)>
Public Overridable Property DigiOfficeProjectID As String
'''<Summary>
'''GlobalID (digiOfficeId) of the project in DigiOffice
'''</Summary>
<ApiMember(Description:="GlobalID (digiOfficeId) of the project in DigiOffice", IsRequired:=true)>
Public Overridable Property DigiOfficeGlobalID As Guid
End Class
End Namespace
End Namespace
VB.NET 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"}}