0.0.4 • Published 4 years ago

rocket-api-js v0.0.4

Weekly downloads
16
License
-
Repository
-
Last release
4 years ago

RocketClient 🚀

A simple and fast client for RocketApi compatible with browser and node.js. 🎉

Install ⬇️

yarn add rocket-api-js

Setup 👨🏻‍💻

import RocketClient from "rocket-api-js";

const myApi = new RocketClient({uid: "YOU-UID"});

//Basic usage
const products = myApi("products");

//create a product
await products.create({name: "Paint", price: 1.00})

//list all products
await products.list() // [{name: "Paint", price: 1.00}]

//create a product
await products.update({/*new values*/})

//create a product
await products.delte(id)
0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago