|
@@ -15,9 +15,6 @@ interface Endpoint {
|
|
|
@GET("books")
|
|
@GET("books")
|
|
|
fun getFinishedBooks(@Query("access-token") accessToken: String): Single<List<FinishedBook>>
|
|
fun getFinishedBooks(@Query("access-token") accessToken: String): Single<List<FinishedBook>>
|
|
|
|
|
|
|
|
- @GET("books/{id}")
|
|
|
|
|
- fun getFinishedBook(@Path("id") id: String): Single<FinishedBook>
|
|
|
|
|
-
|
|
|
|
|
@PUT("books/{id}")
|
|
@PUT("books/{id}")
|
|
|
fun updateFinishedBook(
|
|
fun updateFinishedBook(
|
|
|
@Path("id") id: String,
|
|
@Path("id") id: String,
|
|
@@ -40,9 +37,6 @@ interface Endpoint {
|
|
|
@GET("wishes")
|
|
@GET("wishes")
|
|
|
fun getPlannedBooks(@Query("access-token") accessToken: String): Single<List<PlannedBook>>
|
|
fun getPlannedBooks(@Query("access-token") accessToken: String): Single<List<PlannedBook>>
|
|
|
|
|
|
|
|
- @GET("wishes/{id}")
|
|
|
|
|
- fun getPlannedBook(@Path("id") id: String): Single<PlannedBook>
|
|
|
|
|
-
|
|
|
|
|
@PUT("wishes/{id}")
|
|
@PUT("wishes/{id}")
|
|
|
fun updatePlannedBook(
|
|
fun updatePlannedBook(
|
|
|
@Path("id") id: String,
|
|
@Path("id") id: String,
|
|
@@ -62,9 +56,6 @@ interface Endpoint {
|
|
|
@Query("access-token") accessToken: String
|
|
@Query("access-token") accessToken: String
|
|
|
): Completable
|
|
): Completable
|
|
|
|
|
|
|
|
- @GET("users/latest")
|
|
|
|
|
- fun getLatestUsers(): Single<Map<String, User>>
|
|
|
|
|
-
|
|
|
|
|
@GET("books/latest-notes")
|
|
@GET("books/latest-notes")
|
|
|
fun getLatestBooksWithNotes(): Single<Map<String, Note>>
|
|
fun getLatestBooksWithNotes(): Single<Map<String, Note>>
|
|
|
|
|
|