This code is a set of basic crud operations to perform using
fetch API
.
I think that we often make these operation or we use them in various projects. However, we should cease on doing the same thing again. That's why I thought it would be better if I made a class in which I assemble some of the basic operations like in this example. Please remember that this implementation is a simple example and you can make your own or just use this one. To do so, you just need to call each one you need of these methods in your code!
@kingsamadesu @aymanexpo you may find this helpful!