From 6a103f768037cd648579445519a93f2e2866177e Mon Sep 17 00:00:00 2001 From: Cutiful <113351087+Syaroful@users.noreply.github.com> Date: Thu, 10 Jul 2025 18:17:35 +0700 Subject: [PATCH] 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. --- .../data/network/ClusteringService.kt | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/ClusteringService.kt diff --git a/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/ClusteringService.kt b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/ClusteringService.kt new file mode 100644 index 0000000..ea945d7 --- /dev/null +++ b/agrilinkvocpro/growth_recipe_feature/src/main/java/com/syaroful/agrilinkvocpro/growth_recipe_feature/data/network/ClusteringService.kt @@ -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 +} \ No newline at end of file