Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/developit/restful-mongoose
:bird: Expose Mongoose models as RESTful Express resources.
https://github.com/developit/restful-mongoose
Last synced: 13 days ago
JSON representation
:bird: Expose Mongoose models as RESTful Express resources.
- Host: GitHub
- URL: https://github.com/developit/restful-mongoose
- Owner: developit
- License: mit
- Created: 2016-03-15T03:32:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-09T15:20:07.000Z (over 7 years ago)
- Last Synced: 2024-10-17T13:58:30.995Z (27 days ago)
- Language: JavaScript
- Homepage: http://npm.im/restful-mongoose
- Size: 3.91 KB
- Stars: 90
- Watchers: 6
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# restful-mongoose [![NPM Version](http://img.shields.io/npm/v/restful-mongoose.svg?style=flat)](https://npmjs.com/package/restful-mongoose)
> Expose Mongoose models as RESTful Express resources.
## Installation
Available on [npm](https://npmjs.com/package/restful-mongoose):
```sh
npm install restful-mongoose
```## Usage
```js
import restfulMongoose from 'restful-mongoose';// any mongoose Model:
import Foo from '../models/foo';// create and export a Router, mount it anywhere via .use()
export default restfulMongoose('foo', Foo);
```