0.2.19 • Published 7 years ago

restify-generic-resources v0.2.19

Weekly downloads
10
License
ISC
Repository
github
Last release
7 years ago

Generic Resources for Restify

A small library that adds C.R.U.D. operations to Restify WebServers using SequelizeJS ORM.

Installation

npm install restify-generic-resources

Usage

const genericResources = require('restify-generic-resources');
genericResources.setupAPI(server, '<sequelize-model-name>', <sequelize-models>);

Response

Library should create C.R.U.D endpoints:

GET   /<modelName>/:id    //GET_BY_ID
PUT   /<modelName>        //CREATE
POST  /<modelName>        //UPDATE
GET   /<modelName>        //LIST-ALL
POST  /<modelName>        //LIST-ALL WITH FILTER
DEL   /<modelName>/:id    //DELETE

Tests

npm test

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

0.2.19

7 years ago

0.2.18

7 years ago

0.2.17

7 years ago

0.2.16

7 years ago

0.2.15

7 years ago

0.2.13

7 years ago

0.2.12

7 years ago

0.2.11

7 years ago

0.2.10

7 years ago

0.2.9

7 years ago

0.2.8

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.5

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.13

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago