Bridge

<back to all web services

ETSSearchVessel

Vessels
The following routes are available for this service:
GET/Vessels/ETS/Search-Vessel
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 GetETSVesselListResultsViewModel
            Public Sub New()
                Results = New List(Of GetETSVesselListViewModel)
            End Sub

            Public Overridable Property Results As List(Of GetETSVesselListViewModel)
        End Class

        Public Partial Class GetETSVesselListViewModel
            Public Overridable Property Id As Integer
            Public Overridable Property Text As String
            Public Overridable Property Selected As Boolean
            Public Overridable Property Disabled As Boolean
        End Class
    End Namespace

    Namespace Bridge.Private.Api.DTO

        Public Partial Class ETSSearchVessel
            Public Overridable Property Search As String
        End Class
    End Namespace
End Namespace

VB.NET ETSSearchVessel 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.

GET /Vessels/ETS/Search-Vessel HTTP/1.1 
Host: internal.thebunkerbridge.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Results":[{"Id":0,"Text":"String","Selected":false,"Disabled":false}]}