• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package com.airbnb.lottie.sample.compose.api
2 
3 import retrofit2.http.GET
4 import retrofit2.http.Path
5 import retrofit2.http.Query
6 
7 interface LottieFilesApi {
8     @GET("v2/featured")
getFeaturednull9     suspend fun getFeatured(): AnimationsResponseV2
10 
11     @GET("v1/recent")
12     suspend fun getRecent(@Query("page") page: Int): AnimationsResponseV1
13 
14     @GET("v1/popular")
15     suspend fun getPopular(@Query("page") page: Int): AnimationsResponseV1
16 
17     @GET("v1/search/{query}")
18     suspend fun search(@Path("query") query: String, @Query("page") page: Int): AnimationsResponseV1
19 }