Bridge

<back to all web services

EnquiryForwardPost

Enquiries
The following routes are available for this service:
POST/Enquiries/Forward
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Bridge.Private.Api.DTO
Imports Bridge.Core.ViewModels

Namespace Global

    Namespace Bridge.Core.ViewModels

        Public Partial Class APIForwardEnquiryResultErrorsViewModel
            Public Overridable Property [Error] As String
        End Class

        Public Partial Class APIForwardEnquiryResultViewModel
            Public Sub New()
                APIForwardEnquiryResultErrors = New List(Of APIForwardEnquiryResultErrorsViewModel)
            End Sub

            Public Overridable Property Result As String
            Public Overridable Property APIForwardEnquiryResultErrors As List(Of APIForwardEnquiryResultErrorsViewModel)
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class EnquiryForwardPost
            Public Sub New()
                SelectedEntityContactIds = New List(Of String)
            End Sub

            Public Overridable Property EnquiryId As Integer
            Public Overridable Property AccountId As Nullable(Of Integer)
            Public Overridable Property SelectedEntityContactIds As List(Of String)
        End Class
    End Namespace
End Namespace

VB.NET EnquiryForwardPost DTOs

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

HTTP + JSV

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

POST /Enquiries/Forward HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	EnquiryId: 0,
	AccountId: 0,
	SelectedEntityContactIds: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Result: String,
	APIForwardEnquiryResultErrors: 
	[
		{
			Error: String
		}
	]
}