bookshelf-tastypie
Django Tastypie models for Bookshelf
Last updated 3 years ago by tomi77 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install bookshelf-tastypie 
SYNC missed versions from official npm registry.

bookshelf-tastypie

Django Tastypie models for Bookshelf

Build Status Coverage Status Code Climate devDependencies Status peerDependencies Status Downloads

Table of contents

Installation

NPM

npm install bookshelf-tastypie --save

Yarn

yarn add bookshelf-tastypie

Usage

Load models to registry

require('bookshelf-tastypie')(bookshelf);

or load model/collection

let ApiKey = require('bookshelf-tastypie')(bookshelf).ApiKey;

Available models / collections

Tastypie.ApiKey

ApiKey model

toString() -> string

String representation of api key

generate_key() -> string

Static function to generate unique keys

ApiKey = bookshelf.model('Tastypie.ApiKey')
new_key = ApiKey.generate_key()

Tastypie.ApiKeys

ApiKey collection

Tastypie.ApiAccess

toString() -> string

String representation od api access

Tastypie.ApiAccesses

TODO

  • tests
  • create ApiKey when Django user is created

Current Tags

  • 0.5.0                                ...           latest (3 years ago)

6 Versions

  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (9)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |