retrievejs
TypeScript icon, indicating that this package has built-in type declarations

3.0.14 • Public • Published

retrievejs

A package for retrieving data in a nicely interpretive way.

quick usage

define your endpoints and create your api in /api.js per example

const endpoints = {
    getMockData: { path: 'http://www.mocky.io/v2/5aaa749a3300005d202da965', method: GET },
};

export const api = createApi(endpoints);

query an endpoint

api.getMockData()
  .then(response => { /*..*/ })
  .catch(error => { /*..*/ }); 

the gist

I got frustrated with constantly repeating myself during my exams so I made this package. Undoubtably there's better ones out there but this one works for me and fits to what I need.

API

todos

  • Redux integration
  • Redux storage format documentation

Readme

Keywords

none

Package Sidebar

Install

npm i retrievejs

Weekly Downloads

22

Version

3.0.14

License

MIT

Unpacked Size

76.4 kB

Total Files

35

Last publish

Collaborators

  • thomas-x