blob: 1b8cbec835aa255da18090e1176cc12c7b8ece37 [file] [log] [blame]
package com.airbnb.lottie.sample.compose.api
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface LottieFilesApi {
@GET("v2/featured")
suspend fun getFeatured(): AnimationsResponseV2
@GET("v1/recent")
suspend fun getRecent(@Query("page") page: Int): AnimationsResponseV1
@GET("v1/popular")
suspend fun getPopular(@Query("page") page: Int): AnimationsResponseV1
@GET("v1/search/{query}")
suspend fun search(@Path("query") query: String, @Query("page") page: Int): AnimationsResponseV1
}