| GET | /Entity-Contacts/Contact |
|---|
namespace Bridge.Core.ViewModels
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type GetEntityContact() =
class end
[<AllowNullLiteral>]
type EntityViewModel() =
member val Id:Int32 = new Int32() with get,set
member val Guid:Guid = new Guid() with get,set
member val Type:String = null with get,set
member val Name:String = null with get,set
member val SuperTrader:Boolean = new Boolean() with get,set
member val CompanyDomain:String = null with get,set
member val KYCStartedBy:Int32 = new Int32() with get,set
member val KYCCompletedBy:Int32 = new Int32() with get,set
member val ETSMOHAAccount:String = null with get,set
[<AllowNullLiteral>]
type GetAllAccessLevelsForEntityContactIdViewModel() =
member val Id:Int32 = new Int32() with get,set
member val Allowed:Boolean = new Boolean() with get,set
member val Name:String = null with get,set
member val Description:String = null with get,set
member val PrettyText:String = null with get,set
[<AllowNullLiteral>]
type EntityContactViewModel() =
member val Id:Int32 = new Int32() with get,set
member val Guid:Guid = new Guid() with get,set
member val EntityId:Int32 = new Int32() with get,set
member val FirstName:String = null with get,set
member val LastName:String = null with get,set
member val Initials:String = null with get,set
member val Password:String = null with get,set
member val EmailAddress:String = null with get,set
member val DarkMode:Boolean = new Boolean() with get,set
member val Entity:EntityViewModel = null with get,set
member val LastActive:Nullable<DateTime> = new Nullable<DateTime>() with get,set
member val ImageGuid:Guid = new Guid() with get,set
member val DialingCodeCountryId:Nullable<Int32> = new Nullable<Int32>() with get,set
member val TelephoneNumber:String = null with get,set
member val IsBridgeClient:Boolean = new Boolean() with get,set
member val AccessLevels:ResizeArray<GetAllAccessLevelsForEntityContactIdViewModel> = new ResizeArray<GetAllAccessLevelsForEntityContactIdViewModel>() with get,set
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Entity-Contacts/Contact HTTP/1.1 Host: internal.thebunkerbridge.com Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<EntityContactViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bridge.Core.ViewModels">
<AccessLevels>
<GetAllAccessLevelsForEntityContactIdViewModel>
<Allowed>false</Allowed>
<Description>String</Description>
<Id>0</Id>
<Name>String</Name>
<PrettyText>String</PrettyText>
</GetAllAccessLevelsForEntityContactIdViewModel>
</AccessLevels>
<DarkMode>false</DarkMode>
<DialingCodeCountryId>0</DialingCodeCountryId>
<EmailAddress>String</EmailAddress>
<Entity>
<CompanyDomain>String</CompanyDomain>
<ETSMOHAAccount>String</ETSMOHAAccount>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<KYCCompletedBy>0</KYCCompletedBy>
<KYCStartedBy>0</KYCStartedBy>
<Name>String</Name>
<SuperTrader>false</SuperTrader>
<Type>String</Type>
</Entity>
<EntityId>0</EntityId>
<FirstName>String</FirstName>
<Guid>00000000-0000-0000-0000-000000000000</Guid>
<Id>0</Id>
<ImageGuid>00000000-0000-0000-0000-000000000000</ImageGuid>
<Initials>String</Initials>
<IsBridgeClient>false</IsBridgeClient>
<LastActive>0001-01-01T00:00:00</LastActive>
<LastName>String</LastName>
<Password>String</Password>
<TelephoneNumber>String</TelephoneNumber>
</EntityContactViewModel>