release 0.1 #30

Manually merged
noemi3 merged 150 commits from release/0.1 into master 2020-01-18 14:59:02 +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.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,

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);
}
}