@@ -0,0 +1,1154 @@
+package eu.dzhw.fdz.metadatamanagement.analysispackagemanagement.rest;%0A%0Aimport java.lang.management.ManagementFactory;%0Aimport java.util.List;%0Aimport java.util.concurrent.TimeUnit;%0A%0Aimport org.springframework.http.CacheControl;%0Aimport org.springframework.http.ResponseEntity;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0A%0Aimport eu.dzhw.fdz.metadatamanagement.analysispackagemanagement.domain.SoftwarePackages;%0A%0A/**%0A * Provides a list of all available %7B@link SoftwarePackages%7D.%0A */%0A@Controller%0A@RequestMapping(%22/api%22)%0Apublic class ScriptSoftwarePackagesResource %7B%0A%0A  private static final Long ETAG = ManagementFactory.getRuntimeMXBean().getStartTime();%0A%0A  /**%0A   * Returns survey sample types.%0A   */%0A  @GetMapping(path = %22/analysis-packages/scripts/software-packages%22)%0A  public ResponseEntity%3CList%3CString%3E%3E getSoftwarePackages() %7B%0A    return ResponseEntity.ok()%0A        .cacheControl(CacheControl.maxAge(0, TimeUnit.DAYS).mustRevalidate().cachePublic())%0A        .eTag(ETAG.toString())%0A        .body(SoftwarePackages.ALL);%0A  %7D%0A%7D%0A

add endpoint to get all software packages (#2978)