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