Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DMS.Operations
Imports IDB.API.DMS
Imports IDB.Core.Diagnostics.Interfaces
Namespace Global
Namespace IDB.API.DMS
Public Partial Class AttachmentMailing
End Class
Public Partial Class Bookmark
Public Overridable Property RemoveLastBreak As Nullable(Of Boolean)
Public Overridable Property ReplaceOnChange As Boolean
Public Overridable Property IsDynamic As Boolean
End Class
Public Enum DocInfoSilentMode
Off
AllowUserInteraction
DoNotAllowUserInteraction
End Enum
Public Partial Class Mailings
End Class
<DataContract>
Public Partial Class MetaDataField
<DataMember>
Public Overridable Property ID As Nullable(Of Guid)
<DataMember>
Public Overridable Property DocumentVeldID As Nullable(Of Guid)
<DataMember>
Public Overridable Property Name As String
<DataMember>
Public Overridable Property Label As String
<DataMember>
Public Overridable Property Datatype As String
<DataMember>
Public Overridable Property PrintLabel As String
<DataMember>
Public Overridable Property Entity As String
<DataMember>
Public Overridable Property PrintValue As String
<DataMember>
Public Overridable Property RegistrationValue As String
<DataMember>
Public Overridable Property SPSiteColumnName As String
<DataMember>
Public Overridable Property ShadowName As String
<DataMember>
Public Overridable Property ShadowDatatype As String
<DataMember>
Public Overridable Property ShadowSPSiteColumnName As String
<DataMember>
Public Overridable Property ShadowSPSiteColumnRegistrationValue As String
<DataMember>
Public Overridable Property ShadowRegistrationValue As String
<DataMember>
Public Overridable Property IsKeyField As Boolean
<DataMember>
Public Overridable Property KopierenBijNieuweVersie As Boolean
End Class
End Namespace
Namespace IDB.API.DMS.Operations
Public Partial Class AddDocument
Public Sub New()
MetaData = New List(Of MetaDataField)
AttachmentsMailings = New List(Of AttachmentMailing)
End Sub
Public Overridable Property RegistrationProfileID As Guid
Public Overridable Property DocumentID As Nullable(Of Guid)
Public Overridable Property RootDocumentID As Nullable(Of Guid)
Public Overridable Property AssignToUserID As Nullable(Of Integer)
Public Overridable Property AssignToGroupID As Nullable(Of Integer)
Public Overridable Property MetaData As List(Of MetaDataField)
Public Overridable Property Mailings As Mailings
Public Overridable Property AttachmentsMailings As List(Of AttachmentMailing)
Public Overridable Property FileID As Nullable(Of Guid)
Public Overridable Property SilentMode As DocInfoSilentMode
Public Overridable Property updateStorageSystem As Boolean
Public Overridable Property MessageQueueId As Nullable(Of Integer)
End Class
Public Partial Class DocumentResponse
Public Sub New()
MetaData = New List(Of MetaDataField)
Bookmarks = New List(Of Bookmark)
AttachmentsMailings = New List(Of AttachmentMailing)
End Sub
Public Overridable Property DocumentID As Guid
Public Overridable Property DocumentNr As String
Public Overridable Property RootDocumentID As Guid
Public Overridable Property MetaData As List(Of MetaDataField)
Public Overridable Property Bookmarks As List(Of Bookmark)
Public Overridable Property Mailings As Mailings
Public Overridable Property AttachmentsMailings As List(Of AttachmentMailing)
Public Overridable Property Messages As IInformationMessages
Public Overridable Property SourceDocumentPath As String
Public Overridable Property DestinationDocumentPath As String
Public Overridable Property SharePointContentTypeName As String
Public Overridable Property ZIPAttachments As Boolean
End Class
End Namespace
Namespace IDB.Core.Diagnostics.Interfaces
Public Interface IInformationMessages
End Interface
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/AddDocument HTTP/1.1
Host: digiofficeapigateway.deltares.nl
Accept: application/json
Content-Type: application/json
Content-Length: length
{"RegistrationProfileID":"00000000-0000-0000-0000-000000000000","DocumentID":"00000000-0000-0000-0000-000000000000","RootDocumentID":"00000000-0000-0000-0000-000000000000","AssignToUserID":0,"AssignToGroupID":0,"MetaData":[{"ID":"00000000-0000-0000-0000-000000000000","DocumentVeldID":"00000000-0000-0000-0000-000000000000","Name":"String","Label":"String","Datatype":"String","PrintLabel":"String","Entity":"String","PrintValue":"String","RegistrationValue":"String","SPSiteColumnName":"String","ShadowName":"String","ShadowDatatype":"String","ShadowSPSiteColumnName":"String","ShadowSPSiteColumnRegistrationValue":"String","ShadowRegistrationValue":"String","IsKeyField":false,"KopierenBijNieuweVersie":false}],"Mailings":{},"AttachmentsMailings":[{}],"FileID":"00000000-0000-0000-0000-000000000000","SilentMode":"Off","updateStorageSystem":false,"MessageQueueId":0}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"DocumentID":"00000000-0000-0000-0000-000000000000","DocumentNr":"String","RootDocumentID":"00000000-0000-0000-0000-000000000000","MetaData":[{"ID":"00000000-0000-0000-0000-000000000000","DocumentVeldID":"00000000-0000-0000-0000-000000000000","Name":"String","Label":"String","Datatype":"String","PrintLabel":"String","Entity":"String","PrintValue":"String","RegistrationValue":"String","SPSiteColumnName":"String","ShadowName":"String","ShadowDatatype":"String","ShadowSPSiteColumnName":"String","ShadowSPSiteColumnRegistrationValue":"String","ShadowRegistrationValue":"String","IsKeyField":false,"KopierenBijNieuweVersie":false}],"Bookmarks":[{"RemoveLastBreak":false,"ReplaceOnChange":false,"IsDynamic":false}],"Mailings":{},"AttachmentsMailings":[{}],"Messages":null,"SourceDocumentPath":"String","DestinationDocumentPath":"String","SharePointContentTypeName":"String","ZIPAttachments":false}