Skip to content

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

Notifications You must be signed in to change notification settings

bristol-su/http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published