I've created a small library that can be used in front-end apps, it allows HTTP requests to server, when data that is being sent, you only pass it as JS object, lib does the converting to JSON for you. When receiving, data is converted to JS object so it is available immediately on response end.
json-front
also allows creation of API URL instances that can be reused across whole project.
Methods implemented:
GET
POST
PUT
DELETE
Try it out, if you want, and let me know any suggestions that you may have.
Top comments (0)