Skip to content

fhg-test/rest

Repository files navigation

rest

API Client

Installation

Use the package manager to install @fhg-test/rest

yarn add @fhg-test/rest

Usage

// 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');
})();

Authors

Phat Pham

License

MIT