Use the package manager to install @fhg-test/rest
yarn add @fhg-test/rest
// initialize API Client
import rest from '@fhg-test/rest';
rest.init('http://localhost:9000/api');
// make a request
import * as rest from '@fhg-test/rest';
(async () => {
const booking = await rest.bookings.get('123');
})();