No Description

TrefleService.kt 356B

1234567891011121314
  1. package com.example.trefletest
  2. import com.example.trefletest.models.Plant
  3. import retrofit2.Call
  4. import retrofit2.http.GET
  5. import retrofit2.http.Path
  6. import retrofit2.http.Query
  7. interface TrefleService {
  8. @GET("/api/v1/plants/{id}")
  9. fun getPlants(@Path("id") id: String, @Query("token") token: String): Call<Plant>
  10. }
  11. //@Query("filter[id]") id: Int