bookshelf-tastypie
Django Tastypie models for Bookshelf
Table of contents
Installation
NPM
npm install bookshelf-tastypie --save
Yarn
yarn add bookshelf-tastypie
Usage
Load models to registry
bookshelf;
or load model/collection
let ApiKey = bookshelfApiKey;
Available models / collections
Tastypie.ApiKey
ApiKey model
toString() -> string
String representation of api key
generate_key() -> string
Static function to generate unique keys
ApiKey = bookshelfnew_key = ApiKey
Tastypie.ApiKeys
ApiKey collection
Tastypie.ApiAccess
toString() -> string
String representation od api access
Tastypie.ApiAccesses
TODO
- tests
- create ApiKey when Django user is created