Check this medium post for more info https://proandroiddev.com/oversimplified-network-call-using-retrofit-livedata-kotlin-coroutines-and-dsl-512d08eadc16
mohamed-khaled-hsn/networkcall-sample
Source code for medium post "Oversimplified network call using Retrofit, LiveData, Kotlin Coroutines and DSL"
Kotlin