de.otto.edison.status.controller.DependenciesController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-core Show documentation
Show all versions of edison-core Show documentation
Core library for all Edison libraries.
package de.otto.edison.status.controller;
import de.otto.edison.annotations.Beta;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
import static java.util.Collections.singletonMap;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
import static org.springframework.http.ResponseEntity.ok;
/**
* @since 1.1.0
*/
@Beta
@RestController
public class DependenciesController {
private final ExternalDependencies externalDependencies;
@Autowired
public DependenciesController(ExternalDependencies externalDependencies) {
this.externalDependencies = externalDependencies;
}
@GetMapping(
value = "${edison.application.management.base-path:/internal}/dependencies",
produces = APPLICATION_JSON_VALUE)
public ResponseEntity