1.0.4 • Published 3 years ago

@bristol-su/http-client v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
3 years ago

http-client

An http client for JavaScript, for use with the Bristol SU portal.

Exports an instance of axios, with a few settings. These settings help make the integration between the Bristol SU portal and your module easier, allowing you to use your module API as if it were a standalone app.

Installation

npm install bristol-su/http-client

Usage

In the top of your .js file, import the package

import http from 'http-client';

We highly recommend binding the client to your Vue prototype, so that any future changes will only have to be changed in your .js file

Vue.prototype.$http = http;
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

4 years ago

1.0.0

4 years ago