Im new to coroutines and Im trying to figure out how to make a simple request using retrofit, where I can pass my custom param. All the examples which praise how simple it is use either hardcoded query parameter or make calls which don't use them at all (i.e. https://proandroiddev.com/suspend-what-youre-doing-retrofit-has-now-coroutines-support-c65bd09ba067)
My scenario is as follows - fragment has an edit text where user puts data and also fragments observes a MutableLiveData that's defined in ViewModel. On button press I want to make a query using value from the edittext and update the MutableLiveData with the response content. It doesn't sound complicated but can't find a way to do it with coroutines.