axios-resource
Simple axios resource class to easily interact with a REST endpoint.
Explore the documentation.
Requirements
- axios
Installation
npm install --save axios-resource
Getting started
Create a simple implementation of a resource endpoint.
; static URL = 'user/{id}';
Then expose the resource (e.g. through a service-like module).
;; const http = axios; user: http
You're ready to use this simple API service module.
; // GET http://example.com/user/meAPIuser