pyrite-connect
v0.4.1
Published
Pyrite Connect
Downloads
5
Readme
pyrite-connect
Install
npm install pyrite-connect
Example
import { PyriteConnect } from "pyrite-connect";
const connect = new PyriteConnect({
url: 'http://localhost:8080'
});
connect.getRoutes()
.then((routes) => {
routes.Users.createUser({
name: "Foo",
lastName: "Bar"
})
.then((user) => {
console.log(user);
});
routes.Users.getUser(1)
.then((user) => {
console.log(user);
});
routes.Users.getUsers()
.then((users) => {
console.log(users);
});
});