0.1.12 • Published 5 years ago
tiny-blog-api v0.1.12
tiny-blog-api
Api spec and JS client for tiny-blog
Related repos
- tiny-blog: https://github.com/strangedev/tiny-blog
- tiny-blog-api: https://github.com/strangedev/tiny-blog-api
- tiny-blog-backend: https://github.com/strangedev/tiny-blog-backend
- tiny-blog-ui: https://github.com/strangedev/tiny-blog-ui
- tiny-blog-model: https://github.com/strangedev/tiny-blog-model
Usage
import {Public} from "tiny-blog-api";
const backend = {
host: "localhost",
port: "3000",
ssl: false
};
const client = Public.client(
backend.host,
backend.port,
backend.ssl
);
let cancel = client.BlogEntry.view.newest().fork(
console.error,
console.log // type [Public.model.BlogEntry]
);
cancel = client.Tag.view.all().fork(
console.error,
console.log // type [String]
);