ass="block lang-kotlin" theme="idea">@AutoProvideService<br>class ApiService {<br>  @GET("users")<br>  suspend fun getUsers(): List&lt;User&gt;<br>}<br><br>// You'll also need to provide a Retrofit instance to the component you want to inject the service into:<br>@Module<br>@InstallIn(SingletonComponent::class)<br>object RetrofitModule {<br>  @Provides<br>  @Singleton<br>  fun provideRetrofit(): Retrofit = Retrofit.Builder()<br>      .baseUrl("https://api.example.com/")<br>      .addConverterFactory(SomeCon