0.0.7 • Published 7 years ago
waterline-crud v0.0.7
Waterline CRUD
Provide CRUD for Waterline models.
To get started:
$ npm i waterline-crudDocumentation
Rails like Action Mapping:
GET /<resources> -> index (list)GET /<resources>/new -> newPOST /<resources> -> createGET /<resources>/:id -> showGET /<resources>/edit -> editPUT /<resources>/:id -> updateDELETE /<resources>/:id -> destroy
Scaffold Actions:
API:
- index
- show
- new
- count
- update
- destroy
CRUD:
- list
- create
- view
- edit
API, 6 endpoints:
GET /api/<resource> -> indexGET /api/<resource>/count -> countGET /api/<resource>/:id -> showPOST /api/<resource> -> newPUT /api/<resource>/:id -> updateDELETE /api/<resource>/:id -> destroy
CRUD, 4 endpoints:
GET /admin/<resource> -> listGET /admin/<resource>/create -> createGET /admin/<resource>/:id -> viewGET /admin/<resource>/:id/edit -> edit
TODO
- Integrate:
License
® License MIT by goliatone 2017