Plain Api - Thin wrapper around your favorite HTTP client to simplify your api calls
Words
138
Reading
1 min
Listen
Play
8y
Repository
https://github.com/naorye/plain-api
What is the project about?
Almost every project (mainly frontend and even node) use apis. Many lines of code should be written in order to use those apis, even if we use an advanced HTTP client (like axios):
- Define the url
- Interpolate params
- Request header and body
- Parse the response
There is always the question of where to put this code. Plain Api answers that question by providing a thin factory that organizes and saperates all the above.
Technology Stack
Javascript, Babel, axios
Roadmap
Add more examples, implement suggestions from the community. Mainly extend the library to support all variations of inputs and parsing.
How to contribute?
- Fork it (https://github.com/naorye/plain-api/fork)
- Create your feature branch (
git checkout -b feature/fooBar) - Commit your changes (
git commit -am 'Add some fooBar') - Push to the branch (
git push origin feature/fooBar) - Create a new Pull Request