koa-restify-mongoose
v3.1.1
Published
Easily create a flexible REST interface for mongoose models in KOA
Downloads
3
Maintainers
Readme
koa-restify-mongoose
Easily create a flexible REST interface for mongoose models in KOA.
This is the first REST interface with restify and mongoose made for KOA. It's a fork from the original module express-restify-mongoose/ by florianholzapfel.
Note: This module started with version 3.0.1 of the express repository. So, just to keep both versions number aligned, this module will start with the same version.
Getting started
The library is only compatible with mongoose >= 4
npm install koa-restify-mongoose --save
Documentation
The documentation is the same than in https://florianholzapfel.github.io/express-restify-mongoose/.
All functionality is supported except for the postMiddleware function (feel free to fix it if you want)
Contributing
Found a bug or have a suggestion to make? Have a took at issues or open a new one.
Everyone is welcome to contribute code by creating a pull request, just make sure to follow standard style.
TODO
- Adapt all the test to KOA
- Adapt all the examples to KOA
- Format correctly to standardjs
- Fix postMiddleware
License (MIT)
Copyright (C) 2016 by Luciano Ganga
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.