| GET | /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 APIForwardEnquiryViewModel
Public Sub New()
GetEntityAccounts = New List(Of EntityAccountsViewModel)
End Sub
Public Overridable Property VesselId As Integer
Public Overridable Property EnquiryId As Integer
Public Overridable Property EnquiryGuid As Guid
Public Overridable Property GetEntityAccounts As List(Of EntityAccountsViewModel)
End Class
Public Partial Class EntityAccountsViewModel
Public Overridable Property Id As Integer
Public Overridable Property Type As String
Public Overridable Property Name As String
Public Overridable Property LinkedVesselId As Integer
End Class
End Namespace
Namespace Bridge.Private.Api.DTO
Public Partial Class EnquiryForward
Public Overridable Property EnquiryId As Integer
Public Overridable Property EnquiryGuid As Guid
Public Overridable Property VesselId As Integer
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Enquiries/Forward HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"VesselId":0,"EnquiryId":0,"EnquiryGuid":"00000000000000000000000000000000","GetEntityAccounts":[{"Id":0,"Type":"String","Name":"String","LinkedVesselId":0}]}