Add BoardService implementation. #3
@ -3,6 +3,7 @@ package wekan.wrapper.api;
|
|||||||
import retrofit2.Call;
|
import retrofit2.Call;
|
||||||
import retrofit2.http.*;
|
import retrofit2.http.*;
|
||||||
import wekan.wrapper.entity.Board;
|
import wekan.wrapper.entity.Board;
|
||||||
|
import wekan.wrapper.entity.LabelPrototype;
|
||||||
import wekan.wrapper.entity.MemberPermission;
|
import wekan.wrapper.entity.MemberPermission;
|
||||||
import wekan.wrapper.entity.BoardPrototype;
|
import wekan.wrapper.entity.BoardPrototype;
|
||||||
|
|
||||||
@ -21,6 +22,12 @@ public interface BoardService {
|
|||||||
@DELETE("api/boards/{boardId}")
|
@DELETE("api/boards/{boardId}")
|
||||||
Call<Void> deleteBoard(@Path("boardId") String 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}")
|
@POST("/api/boards/{boardId}/members/{memberId}")
|
||||||
Call<Void> setMemberPermission(
|
Call<Void> setMemberPermission(
|
||||||
@Path("boardId") String board,
|
@Path("boardId") String board,
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user