1234567891011121314 |
- package com.example.trefletest
-
- import com.example.trefletest.models.Plant
- import retrofit2.Call
- import retrofit2.http.GET
- import retrofit2.http.Path
- import retrofit2.http.Query
-
- interface TrefleService {
- @GET("/api/v1/plants/{id}")
- fun getPlants(@Path("id") id: String, @Query("token") token: String): Call<Plant>
- }
-
- //@Query("filter[id]") id: Int
|