refactor: Remove unused API endpoints from CollabTableApi
This commit is contained in:
+2
-16
@@ -5,7 +5,8 @@ import com.collabtable.app.data.model.Field
|
||||
import com.collabtable.app.data.model.Item
|
||||
import com.collabtable.app.data.model.ItemValue
|
||||
import retrofit2.Response
|
||||
import retrofit2.http.*
|
||||
import retrofit2.http.Body
|
||||
import retrofit2.http.POST
|
||||
|
||||
data class SyncRequest(
|
||||
val lastSyncTimestamp: Long,
|
||||
@@ -26,19 +27,4 @@ data class SyncResponse(
|
||||
interface CollabTableApi {
|
||||
@POST("sync")
|
||||
suspend fun sync(@Body request: SyncRequest): Response<SyncResponse>
|
||||
|
||||
@GET("lists")
|
||||
suspend fun getLists(): Response<List<CollabList>>
|
||||
|
||||
@GET("lists/{listId}")
|
||||
suspend fun getList(@Path("listId") listId: String): Response<CollabList>
|
||||
|
||||
@GET("lists/{listId}/fields")
|
||||
suspend fun getFields(@Path("listId") listId: String): Response<List<Field>>
|
||||
|
||||
@GET("lists/{listId}/items")
|
||||
suspend fun getItems(@Path("listId") listId: String): Response<List<Item>>
|
||||
|
||||
@GET("items/{itemId}/values")
|
||||
suspend fun getItemValues(@Path("itemId") itemId: String): Response<List<ItemValue>>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user