Changes to be committed:

modified:   app/src/main/java/com/navi/medici/androidCustomerApp/api/LoginApi.kt
	modified:   app/src/main/java/com/navi/medici/androidCustomerApp/api/OtpApi.kt
	modified:   app/src/main/java/com/navi/medici/androidCustomerApp/api/RegisterApi.kt
This commit is contained in:
Shashidhara Gopal
2019-11-14 15:22:05 +05:30
parent 9d22fa9dea
commit ed2a165f25
3 changed files with 10 additions and 3 deletions

View File

@@ -7,8 +7,10 @@ import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST
private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "http://192.168.31.220:3020"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
private const val BASE_URL = "https://77614f4e-45a5-49a3-928c-b232ce7620ef.mock.pstmn.io"
interface LoginApi {
@POST("/auth/otps/generate")

View File

@@ -7,8 +7,10 @@ import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.POST
private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "http://192.168.31.220:3020"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
private const val BASE_URL = "https://77614f4e-45a5-49a3-928c-b232ce7620ef.mock.pstmn.io"
interface OtpApi {
@POST("/auth/tokens")

View File

@@ -7,8 +7,11 @@ import retrofit2.Response
import retrofit2.http.Body
import retrofit2.http.PUT
private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
//private const val BASE_URL = "http://192.168.31.220:3020"
//private const val BASE_URL = "https://auth-service.np.navi-tech.in"
private const val BASE_URL = "https://77614f4e-45a5-49a3-928c-b232ce7620ef.mock.pstmn.io"
interface RegisterApi {
@PUT("/auth/app-installations/register")
suspend fun checkDevice(@Body registerRequest: RegisterRequest): Response<RegisterResponse>