From 3a11d9473dc7f521b19eb01d47abbcb468875955 Mon Sep 17 00:00:00 2001 From: Jacob Ilin Date: Fri, 1 May 2020 23:25:37 -0600 Subject: [PATCH] Adding url template --- .../main/java/com/glowbom/mobileorders/model/ItemsApi.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/android/MobileOrders/app/src/main/java/com/glowbom/mobileorders/model/ItemsApi.kt b/android/MobileOrders/app/src/main/java/com/glowbom/mobileorders/model/ItemsApi.kt index c370e52..4d7c9d1 100644 --- a/android/MobileOrders/app/src/main/java/com/glowbom/mobileorders/model/ItemsApi.kt +++ b/android/MobileOrders/app/src/main/java/com/glowbom/mobileorders/model/ItemsApi.kt @@ -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 - @GET("macros/s/AKfycbzpcDZYAP71FNvU8kHQG_KBd624DnYrcJfPvKJUCYpDyJEyejs/exec") + @GET(EXTRA_URL) fun addOrder(@Query("data") data : String): Single } \ No newline at end of file