feat: Add ClusteringService interface
This commit introduces the `ClusteringService` interface. This interface defines a suspend function `getRecommendations` to fetch clustering recommendations from the "api/data" endpoint. It is expected to return a list of `ClusteringResponse` objects.
This commit is contained in:
parent
aebb7d7127
commit
6a103f7680
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.syaroful.agrilinkvocpro.growth_recipe_feature.data.network
|
||||||
|
|
||||||
|
import com.syaroful.agrilinkvocpro.growth_recipe_feature.data.model.ClusteringResponse
|
||||||
|
import retrofit2.http.GET
|
||||||
|
|
||||||
|
interface ClusteringService {
|
||||||
|
@GET("api/data")
|
||||||
|
suspend fun getRecommendations(): List<ClusteringResponse>
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user