modufy params

This commit is contained in:
Umberto Furno 2019-11-12 12:17:39 +01:00
parent d8578e2f66
commit 53d3459fc1

View File

@ -37,7 +37,7 @@ public interface CardService {
* @return the card with matching ID * @return the card with matching ID
*/ */
@POST("/api/boards/{board}/lists/{list}/cards") @POST("/api/boards/{board}/lists/{list}/cards")
Call<Card> newCard(@Body Card card, @Path("board") String boardID, @Path("list") String listID); Call<Card> newCard(@Path("board") String boardID, @Path("list") String listID, @Body Card card);
/** /**
* Get information card * Get information card
@ -69,6 +69,6 @@ public interface CardService {
*/ */
@Headers("Content-Type: application/merge-patch+json") @Headers("Content-Type: application/merge-patch+json")
@PUT("/api/boards/{board}/lists/{list}/cards/{card}") @PUT("/api/boards/{board}/lists/{list}/cards/{card}")
Call<Card> putCard(@Body Card card, @Path("board") String boardID, @Path("list") String listID, Call<Card> putCard(@Path("board") String boardID, @Path("list") String listID,
@Path("card") String cardID); @Path("card") String cardID, @Body Card card);
} }