Bridge

<back to all web services

ETSSearchVessel

Vessels
The following routes are available for this service:
GET/Vessels/ETS/Search-Vessel
import Foundation
import ServiceStack

public class ETSSearchVessel : Codable
{
    public var search:String

    required public init(){}
}

public class GetETSVesselListResultsViewModel : Codable
{
    public var results:[GetETSVesselListViewModel] = []

    required public init(){}
}

public class GetETSVesselListViewModel : Codable
{
    public var id:Int
    public var text:String
    public var selected:Bool
    public var disabled:Bool

    required public init(){}
}


Swift 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}]}