DigiOffice Gateway Web Services

<back to all web services

EntityQuicklookup

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

namespace IDB.API.DTO.Controls.Operations
{
    public partial class QuickLookupResponse
        : IBaseQuickLookupResponse
    {
        public QuickLookupResponse()
        {
            Values = new List<SerializableKeyValuePair<String,String>>{};
            QuickAddOptions = new List<QuickAddOption>{};
        }

        public virtual int NumberOfAllRecords { get; set; }
        public virtual List<SerializableKeyValuePair<String,String>> Values { get; set; }
        public virtual List<QuickAddOption> QuickAddOptions { get; set; }
    }

}

namespace IDB.API.DTO.Controls.QuickLookup
{
    public partial class EntityQuicklookup
    {
        public virtual string Name { get; set; }
        public virtual string LookupValue { get; set; }
    }

    public partial class QuickAddOption
    {
        public virtual string Name { get; set; }
        public virtual string EntityType { get; set; }
    }

}

C# EntityQuicklookup DTOs

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

HTTP + OTHER

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

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

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

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