Open haris15 opened 4 years ago
If you are speaking about query parameter, you can do something like this
interface UserApi {
@GET("users/{id}")
suspend fun getUserById(@Path("id") id: Long) : User
}
No using Intent to viewmodel
Greate tutorial my friend, i have question how can i pass parameter in retrofit api using this architecture ?