| 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(){}
}
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 /Vessels/ETS/Search-Vessel HTTP/1.1 Host: internal.thebunkerbridge.com Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Results":[{"Id":0,"Text":"String","Selected":false,"Disabled":false}]}