An open API service indexing awesome lists of open source software.

https://github.com/pyrite-framework/pyrite-connect


https://github.com/pyrite-framework/pyrite-connect

client helper rest-api

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# pyrite-connect

## Install

```
npm install pyrite-connect
```

## Example

```typescript
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);
});
});
```