Skip to content

Commit

Permalink
Adding url template
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-i committed May 2, 2020
1 parent 86469fc commit 3a11d94
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@ import io.reactivex.Single
import retrofit2.http.GET
import retrofit2.http.Query

const val EXTRA_URL = "YOUR_PART_URL_STARTING_WITH_MACROS"

interface ItemsApi {
@GET("macros/s/AKfycbzpcDZYAP71FNvU8kHQG_KBd624DnYrcJfPvKJUCYpDyJEyejs/exec")

@GET(EXTRA_URL)
fun getItems(): Single<Data>

@GET("macros/s/AKfycbzpcDZYAP71FNvU8kHQG_KBd624DnYrcJfPvKJUCYpDyJEyejs/exec")
@GET(EXTRA_URL)
fun addOrder(@Query("data") data : String): Single<Success>
}

0 comments on commit 3a11d94

Please sign in to comment.