use of java.lang.Deprecated in project oncotree by cBioPortal.
the class TumorTypesTxtApi method tumorTypesTxtGet.
@Deprecated
@ApiOperation(value = "Tumor Types in plain text format.", notes = "Return all available tumor types.", response = Void.class)
@ApiResponses(value = { @ApiResponse(code = 200, message = "Tumor types text file."), @ApiResponse(code = 404, message = "Could not find tumor types text file"), @ApiResponse(code = 503, message = "Required data source unavailable") })
@RequestMapping(value = "", produces = { TEXT_PLAIN_VALUE }, method = RequestMethod.GET)
public InputStreamResource tumorTypesTxtGet(@ApiParam(value = "The version of tumor types. For example, " + VersionUtil.DEFAULT_VERSION + ". Please see the versions api documentation for released versions.") @RequestParam(value = "version", required = false) String version) {
Map<String, TumorType> tumorTypes = new HashMap<>();
Version v = (version == null) ? versionUtil.getDefaultVersion() : versionUtil.getVersion(version);
tumorTypes = cacheUtil.getTumorTypesByVersion(v);
InputStream inputStream = tumorTypesUtil.getTumorTypeInputStream(tumorTypes);
InputStreamResource inputStreamResource = new InputStreamResource(inputStream);
return inputStreamResource;
}
Aggregations