From eecc88d3d0ae79cbfc43045d3794ed11c7396502 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Mur=C3=ADn?= Date: Fri, 21 Jul 2017 11:19:39 +0200 Subject: [PATCH] API version 1.0, link to API docs updated, links to Android docs updated --- README.md | 10 +++++----- sdk/src/main/java/com/sygic/travel/sdk/api/StApi.kt | 2 +- .../java/com/sygic/travel/sdk/api/StApiConstants.kt | 2 +- .../com/sygic/travel/sdk/model/query/PlacesQuery.kt | 4 ++-- .../com/sygic/travel/sdk/model/query/ToursQuery.kt | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index fe376986..8558984d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Sygic Travel Android SDK is a framework for embedding a rich set of Sygic Travel data within your application. It gives you an access to millions of places covering the whole world. -For further details see [Full SDK documentation](http://docs.sygictravelapi.com/android-sdk/0.3.0-beta). +For further details see [Full SDK documentation](http://docs.sygictravelapi.com/android-sdk/1.0.0). ## Requirements @@ -36,7 +36,7 @@ repositories { Add dependency to your application module `build.gradle` file: ```gradle dependencies { - compile ('com.sygic.travel:sdk:0.3.0-beta@aar'){ + compile ('com.sygic.travel:sdk:1.0.0@aar'){ transitive=true; } } @@ -70,9 +70,9 @@ To obtain your *API key* contact us at https://travel.sygic.com/b2b/api-key. ## Usage Introduction This example shows how to use the SDK to fetch a representative set of data. To define a set of places -you need to create a [placeQuery](http://docs.sygictravelapi.com/android-sdk/0.3.0-beta/com/sygic/travel/sdk/model/placeQuery/Query.html) +you need to create a [placeQuery](http://docs.sygictravelapi.com/android-sdk/1.0.0/com/sygic/travel/sdk/model/placeQuery/Query.html) which describes the places which will be fetched - see -[API documentation](http://docs.sygictravelapi.com/0.2/#section-places). +[API documentation](http://docs.sygictravelapi.com/1.0/#section-places). Let's define a set of places we want: @@ -156,7 +156,7 @@ override fun onPause() { ``` ## Basic Classes -For more details check our [documentation](http://docs.sygictravelapi.com/android-sdk/0.3.0-beta). +For more details check our [documentation](http://docs.sygictravelapi.com/android-sdk/1.0.0). Class | Description :-------------------|:--------------------- diff --git a/sdk/src/main/java/com/sygic/travel/sdk/api/StApi.kt b/sdk/src/main/java/com/sygic/travel/sdk/api/StApi.kt index f231a14b..97af063d 100644 --- a/sdk/src/main/java/com/sygic/travel/sdk/api/StApi.kt +++ b/sdk/src/main/java/com/sygic/travel/sdk/api/StApi.kt @@ -13,7 +13,7 @@ import retrofit2.http.Query /** * * Contains available API requests. - * @see [API Documentation](http://docs.sygictravelapi.com/0.2) + * @see [API Documentation](http://docs.sygictravelapi.com/1.0) */ internal interface StApi { diff --git a/sdk/src/main/java/com/sygic/travel/sdk/api/StApiConstants.kt b/sdk/src/main/java/com/sygic/travel/sdk/api/StApiConstants.kt index d7705ea3..f90fe019 100644 --- a/sdk/src/main/java/com/sygic/travel/sdk/api/StApiConstants.kt +++ b/sdk/src/main/java/com/sygic/travel/sdk/api/StApiConstants.kt @@ -12,7 +12,7 @@ internal object StApiConstants { // BASE URL internal var API_BASE_URL = "https://api.sygictravelapi.com/" - var API_VERSION = "0.2" + var API_VERSION = "1.0" // PATTERNS val VERSION_AND_LOCALE = "[api_version_and_locale]" diff --git a/sdk/src/main/java/com/sygic/travel/sdk/model/query/PlacesQuery.kt b/sdk/src/main/java/com/sygic/travel/sdk/model/query/PlacesQuery.kt index 6749f698..137b6dd7 100644 --- a/sdk/src/main/java/com/sygic/travel/sdk/model/query/PlacesQuery.kt +++ b/sdk/src/main/java/com/sygic/travel/sdk/model/query/PlacesQuery.kt @@ -8,7 +8,7 @@ import com.sygic.travel.sdk.model.geo.Bounds * * PlacesQuery contains values which define the places to be fetched. * To see what the parameters mean check the - * [API Documentation](http://docs.sygictravelapi.com/0.2/#endpoint-get-places-list). + * [API Documentation](http://docs.sygictravelapi.com/1.0/#endpoint-get-places-list). */ class PlacesQuery { var query: String? = null @@ -45,7 +45,7 @@ class PlacesQuery { * * Query contains values which define the places to be fetched. * To see what the parameters mean check the - * [API Documentation](http://docs.sygictravelapi.com/0.2/#endpoint-get-places-list). + * [API Documentation](http://docs.sygictravelapi.com/1.0/#endpoint-get-places-list). */ constructor( query: String, diff --git a/sdk/src/main/java/com/sygic/travel/sdk/model/query/ToursQuery.kt b/sdk/src/main/java/com/sygic/travel/sdk/model/query/ToursQuery.kt index 51de4246..5d575267 100644 --- a/sdk/src/main/java/com/sygic/travel/sdk/model/query/ToursQuery.kt +++ b/sdk/src/main/java/com/sygic/travel/sdk/model/query/ToursQuery.kt @@ -3,7 +3,7 @@ package com.sygic.travel.sdk.model.query /** * ToursQuery contains values which define the tours to be fetched. * To see what the parameters mean check the - * [API Documentation](http://docs.sygictravelapi.com/0.2/#section-tours). + * [API Documentation](http://docs.sygictravelapi.com/1.0/#section-tours). */ class ToursQuery( val destinationId: String,