Add BoardService implementation. #3

Merged
UmbertoF merged 10 commits from feature_board into develop 2019-11-10 22:44:41 +00:00
2 changed files with 16 additions and 0 deletions
Showing only changes of commit 850f33eeff - Show all commits

View File

@ -3,6 +3,7 @@ package wekan.wrapper.api;
import retrofit2.Call;
import retrofit2.http.*;
import wekan.wrapper.entity.Board;
import wekan.wrapper.entity.LabelPrototype;
import wekan.wrapper.entity.MemberPermission;
import wekan.wrapper.entity.BoardPrototype;
@ -21,6 +22,12 @@ public interface BoardService {
@DELETE("api/boards/{boardId}")
Call<Void> deleteBoard(@Path("boardId") String boardId);
@PUT("/api/boards/{boardId}/labels")
Call<String> addLabel(
@Path("boardId") String board,
@Body LabelPrototype labelPrototype
);
@POST("/api/boards/{boardId}/members/{memberId}")
Call<Void> setMemberPermission(
@Path("boardId") String board,

View File

@ -0,0 +1,9 @@
package wekan.wrapper.entity;
public class LabelPrototype {
private Label label;
public LabelPrototype(String name, LabelColor color) {
label = new Label(null, name, color);
}
}