fetch-plus-rest
v2.1.0
Published
The easiest and best way to create a REST API Client Library.
Downloads
2
Readme
fetch-rest
The easiest and best way to create a REST API Client Library.
🆘 Help this project by conttributing to its documentation or developing its roadmap.
Features
Setup
- [x] Multi-level endpoints
- [x] Parent path inheritance
- [x] Endpoints configuration file powered by enx
Middlewares
- [x] Automatic ✨ authorization headers setup (Basic credentials and Bearer token) - per endpoint and per endpoint group
- [x] Supports credentials stored in localStorage, sessionStorage, cookies or custom storage
- [x] Custom middleware support (a.k.a. ✨interceptors) powered by fetch-plus
Utilities
- [x] Easy querystring serialization with
query
property - [x] HTTP verbs shorthand methods
- [x] CRUD and BREAD shorthand methods
Infrastructure
- [x] Cross-browser & Node Fetch API (powered by cross-fetch)
- [x] Custom fetch library
*Not checked features are in roadmap.