@PATCH @Path("/{projectid}") @JsonView(Views.Advance.class) public ProjectWrapper updateProject( @PathParam("projectid") String projectid, ProjectWrapper projectWrapper) throws Exception { return (ProjectWrapper) projectController.updateProject(projectid, projectWrapper.getRef()); }
@POST @JsonView(Views.Advance.class) public Response createProject(ProjectWrapper projectWrapper) throws Exception { return Response.status(Status.CREATED) .entity(projectController.createProject(projectWrapper.getRef())) .build(); }