feat(project): Delete project (SCRUM-35) #29

Merged
jank merged 8 commits from feature/remove-project into main 2024-10-02 09:43:10 +00:00
Showing only changes of commit 87f4d05a43 - Show all commits

@ -6,7 +6,6 @@ import de.szut.lf8_starter.project.ProjectService;
import de.szut.lf8_starter.project.dto.GetProjectDto;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import org.springframework.http.HttpStatus;
@ -39,7 +38,7 @@ public class RemoveProjectAction {
return new ResponseEntity<>(HttpStatus.NOT_FOUND);
}
this.projectService.delete(id);
return new ResponseEntity<>(this.projectMapper.mapToGetDto(project.get()), HttpStatus.OK);
this.projectService.delete(project.get().getId());
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
}
}