Imports System
Imports System.IO
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.API.DTO.Document
Imports IDB.Core.Diagnostics.Interfaces
Namespace Global
Namespace IDB.API.DMS
Public Partial Class AttachmentMailing
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 Guid?
<DataMember>
Public Overridable Property DocumentVeldID As 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 Overridable Property RegistrationProfileID As Guid
Public Overridable Property DocumentID As Guid?
Public Overridable Property RootDocumentID As Guid?
Public Overridable Property AssignToUserID As Integer?
Public Overridable Property AssignToGroupID As 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 Guid?
Public Overridable Property SilentMode As DocInfoSilentMode
Public Overridable Property updateStorageSystem As Boolean
Public Overridable Property MessageQueueId As Integer?
End Class
Public Partial Class DocumentResponse
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
End Class
End Namespace
Namespace IDB.API.DTO.Document
Public Partial Class Bookmark
Public Overridable Property Name As String
Public Overridable Property Order As Integer
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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/AddDocument HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
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: text/jsv
Content-Length: length
{
DocumentNr: String,
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
}
],
Mailings: {},
AttachmentsMailings:
[
{
}
],
SourceDocumentPath: String,
DestinationDocumentPath: String,
SharePointContentTypeName: String
}