Skip to content

Commit

Permalink
Merge pull request #551 from HackIllinois/sruthi/APIupdate
Browse files Browse the repository at this point in the history
sruthi API update
  • Loading branch information
AdityaK2905 authored Jan 22, 2025
2 parents 4b70eee + db5e59b commit 093d801
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/src/main/java/org/hackillinois/android/API.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ interface API {
suspend fun attendee(): Attendee

// SHOP

@GET("shop/v2/")
@GET("shop/")
suspend fun shop(): List<ShopItem>

@POST("shop/item/buy/")
Expand All @@ -85,8 +84,8 @@ interface API {
@GET("user/following/")
suspend fun favoriteEvents(): FavoritesResponse

@PUT("user/follow/")
fun followEvent(@Body eventId: EventId): Call<FavoritesResponse>
@PUT("user/follow/{eventId}/")
fun followEvent(@Path("eventId") event: EventId): Call<FavoritesResponse>

@DELETE("user/unfollow/{eventId}")
fun unfollowEvent(@Path("eventId") eventId: EventId): Call<FavoritesResponse>
Expand Down

0 comments on commit 093d801

Please sign in to comment.