Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 9 Next »

To add a new Popular destination click on “Add New PopularDestination” and fill in the fields.

LocationID and Country Code

To get location id (city id) and Country Code you need to follow nexts steps:

  1. Open Swagger in a new tab : https://demo.softwaretravel.net/gptp/stat/swagger/index.html#!/Authorization/GET_authorization

  2. Enter API key, companyCodeOrAlias, login, password. Then press “Try it out” button.

  3. In the “Response Body” copy token

Paste the tocen into the filled and click on “Explore”

4. Choose Get/Locations method

5. Into the “limitCountries” field enter “-1” → press “Try it out” button

6. In the response body choose the country and copy “id”. Also you can find here Country Code (iso2Code value)

7. To proceed paste “id” into “paretntId” field” → Into the “limitCities” field enter “-1” → press “Try it out” button . Choose a city to be displayed as a Popular Destination and copy city “id”.

Country Code

See step 6.
If it needed to display country flag near city name it is necessary to enter Country Code in non-capital letters:

⬇ ⬇ ⬇

Image

To uploade an image click “Add” → “Add more assets”

There is 2 ways to upload your image: from computer or from url.

When all the steps are done make sure that field”OnHomePage is switched ON

You can create as many entries as you want.

Now the Popular destination will be displayed on your website:

  • No labels