From 04adbbae94d4d33b8a0236b96d5844887aac409a Mon Sep 17 00:00:00 2001 From: bspeice Date: Sat, 19 Oct 2013 21:32:30 -0400 Subject: [PATCH] Dumb mistake in Retrofit - use @Path, not @Query --- src/com/uncc/gameday/registration/GamedayService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/uncc/gameday/registration/GamedayService.java b/src/com/uncc/gameday/registration/GamedayService.java index 04f77b3..5cac89c 100644 --- a/src/com/uncc/gameday/registration/GamedayService.java +++ b/src/com/uncc/gameday/registration/GamedayService.java @@ -17,10 +17,10 @@ public interface GamedayService { void rateLot(@Body ParkingRating p, Callback lot); @GET("/register/{id}/") - Attendee getUser(@Query("id") int id); + Attendee getUser(@Path("id") int id); @GET("/register/{fname}/{lname}/") - Attendee getUser(@Query("fname") String firstName, @Query("lname") String lastName); + Attendee getUser(@Path("fname") String firstName, @Path("lname") String lastName); @GET("/register/") List getAllUsers();