GET yacht/countries

REST Apis

List the States indicated in ads

As countries (USA, France, Italy) are the places where ads are.
The API returns a list of the countries managed by associated yacht4web for advertisements or their selection.

Resource URL

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

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/countries?appid=[appId]

Example of Result

The Api returns an array of objects made of code, name of the State and the number of associated ads.
Ads that are not associated with any code line are inserted and empty name.

[  
      {  
         "code":"",
         "name":"",
         "ads":79
      },
      {  
         "code":"IT",
         "name":"Italy",
         "ads":1
      }
]