@fhg-test/rest
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @fhg-test/rest

Weekly Downloads

1

Version

0.5.1

License

MIT

Unpacked Size

70 kB

Total Files

21

Last publish

Collaborators

  • phatpham9