mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-08-07 07:55:42 -04:00
Add the initial Retrofit REST API code
Note: Completely untested, but it looks cool!
This commit is contained in:
15
src/com/uncc/gameday/registration/GamedayService.java
Normal file
15
src/com/uncc/gameday/registration/GamedayService.java
Normal file
@ -0,0 +1,15 @@
|
||||
package com.uncc.gameday.registration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import retrofit.http.*;
|
||||
|
||||
public interface GamedayService {
|
||||
|
||||
@GET("/lots/")
|
||||
List<ParkingLot> listLots();
|
||||
|
||||
@POST("/rating/")
|
||||
void rateLot(@Body ParkingRating rating, @Body ParkingChoices parking_lot);
|
||||
|
||||
}
|
Reference in New Issue
Block a user