new-exporter #5
|
@ -144,9 +144,11 @@ public class DsmCore {
|
||||||
|
|
||||||
public ApiDetailsResponse getApis(final String dsId) throws DsmException {
|
public ApiDetailsResponse getApis(final String dsId) throws DsmException {
|
||||||
try {
|
try {
|
||||||
|
final String eoscType = dsDao.getDs(dsId).getEoscDatasourceType();
|
||||||
final List<? extends ApiDbEntry> apis = dsDao.getApis(dsId);
|
final List<? extends ApiDbEntry> apis = dsDao.getApis(dsId);
|
||||||
final List<ApiDetails> api = apis.stream()
|
final List<ApiDetails> api = apis.stream()
|
||||||
.map(DsmMappingUtils::asDetails)
|
.map(DsmMappingUtils::asDetails)
|
||||||
|
.map(a -> a.setEoscDatasourceType(eoscType))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
return ResponseUtils.apiResponse(api, api.size());
|
return ResponseUtils.apiResponse(api, api.size());
|
||||||
} catch (final Throwable e) {
|
} catch (final Throwable e) {
|
||||||
|
|
Loading…
Reference in New Issue