net.nemerosa.ontrack.boot.ui.BuildController Maven / Gradle / Ivy
package net.nemerosa.ontrack.boot.ui;
import net.nemerosa.ontrack.extension.api.BuildDiffExtension;
import net.nemerosa.ontrack.extension.api.ExtensionManager;
import net.nemerosa.ontrack.model.Ack;
import net.nemerosa.ontrack.model.form.*;
import net.nemerosa.ontrack.model.security.SecurityService;
import net.nemerosa.ontrack.model.structure.*;
import net.nemerosa.ontrack.model.support.Action;
import net.nemerosa.ontrack.ui.controller.AbstractResourceController;
import net.nemerosa.ontrack.ui.resource.Resource;
import net.nemerosa.ontrack.ui.resource.Resources;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
import java.util.stream.Collectors;
import static org.springframework.web.servlet.mvc.method.annotation.MvcUriComponentsBuilder.on;
@RestController
@RequestMapping("/structure")
public class BuildController extends AbstractResourceController {
private final StructureService structureService;
private final PropertyService propertyService;
private final SecurityService securityService;
private final ExtensionManager extensionManager;
@Autowired
public BuildController(StructureService structureService, PropertyService propertyService, SecurityService securityService, ExtensionManager extensionManager) {
this.structureService = structureService;
this.propertyService = propertyService;
this.securityService = securityService;
this.extensionManager = extensionManager;
}
@RequestMapping(value = "project/{projectId}/builds", method = RequestMethod.GET)
public Resource
© 2015 - 2025 Weber Informatics LLC | Privacy Policy