import joinUrl from '../../../shared/utils/joinUrl' ; import environment from '../../../environment' ; import { fetchProxy } from '../../../shared/utils/api/api' ; import type { DcatDataset } from './types' ; /**
 * Get a data catalogue entry by its identifier.
 *
 * API documentation: https://api.data.amsterdam.nl/api/swagger/?url=/dcatd/openapi#/default/get_datasets__id_
 */ export async function getDatasetById ( id ) { return fetchProxy < DcatDataset > ( joinUrl ( [ environment . API_ROOT , 'dcatd/datasets' , id ] ) ) ; }