{"repo":"travist/resourcejs","free":true,"listed":false,"github":"https://github.com/travist/resourcejs","clone":"git clone https://github.com/travist/resourcejs.git","description":"An minimalistic Express.js library that will reflect a Mongoose model onto a RESTful interface with a splash of Swagger.io love.","language":"JavaScript","stars":116,"topics":["javascript","mongoose","swagger","express","expressjs","nodejs"],"license":null,"category":"api-integrations-sdks","readme_excerpt":"Resource.js - A simple Express library to reflect Mongoose models to a REST interface with a splash of Swagger.io love. ============================================================== [![NPM version][npm-image]][npm-url] [![NPM download][download-image]][download-url] [npm-image]: https://img.shields.io/npm/v/resourcejs.svg?style=flat-square [npm-url]: https://npmjs.org/package/resourcejs [download-image]: https://img.shields.io/npm/dm/resourcejs.svg?style=flat-square [download-url]: https://npmjs.org/package/resourcejs Resource.js is designed to be a minimalistic Express library that reflects a Mongoose model to a RESTful interface. It does this through a very simple and extensible interface. Installation -------------- You can install Resource.js using NPM. Usage -------------- Provided the following code The following rest interface would then be exposed. /resource - (GET) - List all resources. /resource - (POST) - Create a new resource. /resource/:id - (GET) - Get a specific resource. /resource/:id - (PUT) - Replaces an existing resource. /resource/:id - (PATCH) - Updates an existing resource. /resource/:id - (DELETE) - Deletes an existing resource. Parameters ---------------- The object takes 4 arguments. - app - This is the Express application. - route - This is the route to \"mount\" this resource onto. For example, if you were doing nested resources, this could be '/parent/:parentId' - name - The name of the resource, which will then be used for the URL path of that reso","default_branch":null,"files":null,"tree":[],"storefront":"/r/travist","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/travist/resourcejs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}