DigiOffice Gateway Web Services

<back to all web services

EntityQuicklookup

Requires Authentication
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.Controls.QuickLookup
Imports IDB.API.DTO.Controls.Operations

Namespace Global

    Namespace IDB.API.DTO.Controls.Operations

        Public Partial Class QuickLookupResponse
            Implements IBaseQuickLookupResponse
            Public Sub New()
                Values = New List(Of SerializableKeyValuePair(Of String,String))
                QuickAddOptions = New List(Of QuickAddOption)
            End Sub

            Public Overridable Property NumberOfAllRecords As Integer
            Public Overridable Property Values As List(Of SerializableKeyValuePair(Of String,String))
            Public Overridable Property QuickAddOptions As List(Of QuickAddOption)
        End Class
    End Namespace

    Namespace IDB.API.DTO.Controls.QuickLookup

        Public Partial Class EntityQuicklookup
            Public Overridable Property Name As String
            Public Overridable Property LookupValue As String
        End Class

        Public Partial Class QuickAddOption
            Public Overridable Property Name As String
            Public Overridable Property EntityType As String
        End Class
    End Namespace
End Namespace

VB.NET EntityQuicklookup DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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

POST /csv/reply/EntityQuicklookup HTTP/1.1 
Host: doapigw.baasbv.nl 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"Name":"String","LookupValue":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"NumberOfAllRecords":0,"Values":[{}],"QuickAddOptions":[{"Name":"String","EntityType":"String"}]}