GET yacht/tipologies

REST Apis

List the types of ads

The types are Open for example, sailing, catamaran, etc...
The API returns a list of the codes and description of types associated with your ads or a selection of them (useful to submit menus in search form).

Resource URL

http://api.yacht4web.com/1.0/yacht/typologies

Parameters

appId

necessary

Your App id
lang

Optional

The language that you want to. Available languages
If not indicated is returned the country's name in English.

Optional

You can further refine your search by adding the filter parameters or common selection, such as having only the sailboats or only used boats.

Request example

http://api.yacht4web.com/1.0/yacht/tipologies?appid=[appId]

Example of Result

The Api returns an array of objects made of code, name of the type and the number of associated ads.

[
   {
      "code":"EXP",
      "name":"Express Cruiser",
      "ads":428
   },
   {
      "code":"FSC",
      "name":"Fast Commuter",
      "ads":1
   },
   {
      "code":"FLY",
      "name":"Flybridge",
      "ads":734
   },
   {
      "code":"GZC",
      "name":"Gozzo cabin cruiser",
      "ads":2
   },
   {
      "code":"INF",
      "name":"Inflatables",
      "ads":2
   },
   {
      "code":"MEG",
      "name":"Mega Yachts",
      "ads":30
   },
   {
      "code":"MTY",
      "name":"Motor Yachts",
      "ads":1
   },
   {
      "code":"MTS",
      "name":"Motorsailers",
      "ads":1
   },
   {
      "code":"OTH",
      "name":"Other",
      "ads":6
   }
]