DigiOffice Gateway Web Services

<back to all web services

GetDocumentViewDetails

Requires Authentication
The following routes are available for this service:
GET POST/api/documentviews/{Key}
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.Document.Operations
Imports IDB.API.DTO.Document
Imports IDB.API.DTO.MobileViews
Imports IDB.API.DTO.Navigation

Namespace Global

    Namespace IDB.API.DTO.Document

        Public Partial Class DocumentView
            Inherits MobileView
            <DataMember>
            Public Overridable Property TranslateKey As String

            <DataMember>
            Public Overridable Property SiteMapKey As String
        End Class
    End Namespace

    Namespace IDB.API.DTO.Document.Operations

        Public Partial Class GetDocumentViewDetails
            Public Overridable Property Key As String
            Public Overridable Property IncludeExplorers As Boolean
        End Class
    End Namespace

    Namespace IDB.API.DTO.MobileViews

        <DataContract>
        Public Partial Class MobileView
            Public Sub New()
                Explorers = New List(Of Explorer)
            End Sub

            <DataMember>
            Public Overridable Property ID As Guid

            <DataMember>
            Public Overridable Property Title As String

            <DataMember>
            Public Overridable Property ImageUrl As String

            <DataMember>
            Public Overridable Property ChildrenCount As Nullable(Of Integer)

            <DataMember>
            Public Overridable Property Order As Integer

            <DataMember>
            Public Overridable Property Explorers As List(Of Explorer)
        End Class
    End Namespace

    Namespace IDB.API.DTO.Navigation

        Public Partial Class Explorer
            Public Overridable Property ID As Guid
            Public Overridable Property Title As String
            Public Overridable Property Order As Integer
        End Class
    End Namespace
End Namespace

VB.NET GetDocumentViewDetails DTOs

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/documentviews/{Key} HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Key":"String","IncludeExplorers":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"TranslateKey":"String","SiteMapKey":"String","ID":"00000000-0000-0000-0000-000000000000","Title":"String","ImageUrl":"String","ChildrenCount":0,"Order":0,"Explorers":[{"ID":"00000000-0000-0000-0000-000000000000","Title":"String","Order":0}]}