Commit 5f55c936 authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

change to POST method

parent cc0a0a79
......@@ -132,7 +132,7 @@ interface IRoomParkMobileApi{
}
@GET("$API_URL$AUTH_METHOD$DELIMITER")
@POST("$API_URL$AUTH_METHOD$DELIMITER")
fun authoriz(
@Query(CLIENT_TYPE_PARAM) clientType: String = DEFAULT_CLIENT_TYPE,
@Query(CLIENT_VERSION_PARAM) clientVersion: String = DEFAULT_CLIENT_VERSION,
......
......@@ -7,11 +7,11 @@ import io.reactivex.Completable
import io.reactivex.Observable
import io.reactivex.ObservableSource
import io.reactivex.ObservableTransformer
import io.reactivex.schedulers.Schedulers
import retrofit2.Response
import retrofit2.Retrofit
import timber.log.Timber
import javax.inject.Inject
import javax.inject.Singleton
/**
* Created by Vladislav Bogdashkin on 29.10.2019.
......@@ -25,6 +25,7 @@ class RetrofitRepository @Inject constructor(retrofit: Retrofit) : IRoomParkApi
override fun authenticate(login: String, pwd: String): Observable<AuthRaw> =
api.authoriz(email = login, pwd = pwd)
.subscribeOn(Schedulers.io())
.compose(RetrofitResponseValidation())
override fun subscribeTopic(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment