@@ -0,0 +1,1655 @@
+package com.jmb.springfactory.controller.api;%0A%0Aimport java.util.List;%0A%0Aimport javax.validation.Valid;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.DeleteMapping;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.PathVariable;%0Aimport org.springframework.web.bind.annotation.PostMapping;%0Aimport org.springframework.web.bind.annotation.RequestBody;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport com.jmb.springfactory.exceptions.NotFoundException;%0Aimport com.jmb.springfactory.exceptions.ServiceLayerException;%0Aimport com.jmb.springfactory.model.bo.QueryTaskObject;%0Aimport com.jmb.springfactory.model.dto.TaskDto;%0Aimport com.jmb.springfactory.service.task.TaskService;%0A%0A@RestController%0A@RequestMapping(%22/group/%7BgroupId%7D/task%22)%0Apublic class GroupTaskController %7B%0A%0A    @Autowired%0A    private TaskService taskService;%0A%0A    @PostMapping%0A    public TaskDto create(@Valid @RequestBody TaskDto task, @PathVariable(%22groupId%22) Integer groupId)%0A            throws NotFoundException, ServiceLayerException %7B%0A        return taskService.saveByGroup(task, groupId);%0A    %7D%0A    %0A    @DeleteMapping(%22/%7BtaskId%7D%22)%0A    public void delete(@PathVariable(%22taskId%22) Integer taskId) %7B%0A        taskService.delete(taskId);%0A    %7D%0A    %0A    @GetMapping%0A    public List%3CTaskDto%3E findAll(@PathVariable(%22groupId%22) Integer groupId) %7B%0A        final QueryTaskObject queryTask = QueryTaskObject.builder().groupId(groupId).build();%0A        return taskService.findAll(queryTask);%0A    %7D%0A%7D%0A

Create controller to manage group tasks