{"_id":"seneca-jsonrest-api","_rev":"18-37e04c8135ab1888e3d92e949785393b","name":"seneca-jsonrest-api","description":"A HTTP JSON REST API for Seneca entities","dist-tags":{"latest":"0.3.1"},"versions":{"0.1.0":{"name":"seneca-jsonrest-api","version":"0.1.0","description":"A HTTP JSON REST API for Seneca entities","main":"lib/jsonrest-api.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":"~0.5.1","gex":"0.0.3"},"dependencies":{"underscore":"~1.4.4"},"files":["README.md","LICENSE.txt","lib"],"_id":"seneca-jsonrest-api@0.1.0","dist":{"shasum":"64901904de50dc4a373f60bfab30dc877a5f626d","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.1.0.tgz","integrity":"sha512-o5bkKjMiNAqDcmh79gCVlFsuTCnjOT5MRvS2C6kfbGDWO1h68PmBCBaVb/8gUz8WwXLOucMlxFFihet7JOTWWw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDloj+1waiPlWFalYcr0ADAGIS/E8Jfw4rV5O1kDaFKJAIhAL3Lqn5eBpskYDEOhugj7m/HO+BKIw1woCOvxm6joHtn"}]},"_npmVersion":"1.1.61","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"directories":{}},"0.1.1":{"name":"seneca-jsonrest-api","version":"0.1.1","description":"A HTTP JSON REST API for Seneca entities","main":"lib/jsonrest-api.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":"~0.5.1","gex":"0.0.3"},"dependencies":{"underscore":"~1.4.4"},"files":["README.md","LICENSE.txt","lib"],"_id":"seneca-jsonrest-api@0.1.1","dist":{"shasum":"94d6ce7f46b7fd43c330183474e553fefa05d8bb","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.1.1.tgz","integrity":"sha512-dZVaJ9j3TkQBPDomRelOMS7pQfT8u8hei9QM3/dGJ5dt+p0iAoD69AN2C8YMOHyjbjGmAxSpqdb36hSDZcdxtA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICHKtaEZOaG9VUPSKiT4JOA5QJTcYo0pvYFK9fGXwFaEAiEAgVZrDV2mRnpIpKzUb8PDxd2Y+1U7FchX++wrNm2dEcY="}]},"_npmVersion":"1.1.61","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"directories":{}},"0.1.2":{"name":"seneca-jsonrest-api","version":"0.1.2","description":"A HTTP JSON REST API for Seneca entities","main":"lib/jsonrest-api.js","scripts":{"test":"./node_modules/mocha/bin/mocha test/jsonrest-api.test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":">=0.5.9","seneca-engage":"*","connect":"*","mocha":"*","gex":"0.0.3"},"dependencies":{"underscore":"~1.4.4"},"files":["README.md","LICENSE.txt","lib"],"_id":"seneca-jsonrest-api@0.1.2","dist":{"shasum":"c40f1d0f1b2353f3837a031db24e69880ad17e51","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.1.2.tgz","integrity":"sha512-U4EcSZ9MvV4PquplrCdd3dsAtfbhnvr+sYT66qasMfPzNlVeIBLZkOqpaPgn3N8L6ZkkYPFsXPcRZNdPkvZ5TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhE1e3+mE4fatWbtAaQyuKAf9mRXGz+7vY55aROZCX2QIgVakOwDxL1WvBaEntcScgg+h/cCqt2YdWXba6QqhXqtA="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"directories":{}},"0.1.3":{"name":"seneca-jsonrest-api","version":"0.1.3","description":"A HTTP JSON REST API for Seneca entities","main":"jsonrest-api.js","scripts":{"test":"./node_modules/mocha/bin/mocha test/jsonrest-api.test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":"0.5.x","connect":"2.12.x","mocha":"1.17.x","gex":"0.1.x"},"dependencies":{"underscore":"1.5.x"},"peerDependencies":{"seneca":"*"},"files":["README.md","LICENSE.txt","jsonrest-api.js"],"bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"homepage":"https://github.com/rjrodger/seneca-jsonrest-api","_id":"seneca-jsonrest-api@0.1.3","dist":{"shasum":"47fe5f393f7f1a1447b92789f03b62a3c335fee5","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.1.3.tgz","integrity":"sha512-IOuUZulXdVzmwUpnmempB4fJp+jDRfySc+bt2WRo5voxnqtxDuG0kp8a6W3hVh5pQCdWogOrl/x48rhkr4tjVg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC04PA26buQ6X2V/v2dUxQE9eUhJv94GCwYNqoI3O3AZwIgAm8RjqA6vUovoKME4DVGTrro1Kvi2woFHJXVb+2Gv8w="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"directories":{}},"0.2.0":{"name":"seneca-jsonrest-api","version":"0.2.0","description":"A HTTP JSON REST API for Seneca entities","main":"jsonrest-api.js","scripts":{"test":"./node_modules/mocha/bin/mocha test/jsonrest-api.test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":"0.5.x","connect":"2.12.x","mocha":"1.17.x","gex":"0.1.x"},"dependencies":{"underscore":"1.5.x"},"peerDependencies":{"seneca":"*"},"files":["README.md","LICENSE.txt","jsonrest-api.js"],"bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"homepage":"https://github.com/rjrodger/seneca-jsonrest-api","_id":"seneca-jsonrest-api@0.2.0","dist":{"shasum":"18129cc1144f40c0c25cc6a904df7028d67cd8a6","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.2.0.tgz","integrity":"sha512-rEwUJV8p56R08mbHOJLBYn2hLzOH8hfoe26Hi+aKMyS1KG/3p6AXORnba2s/r8DFmTZ8TDbYFA3MEKadSCvBpg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEmdWeVkcMNi5rZbG3OaokV11R8NWrpe4fBU7xKkITAnAiEA4B/IMmsckBxVPF3i/J1FlMlZBHIrOjVe4OWwH/f1iiE="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}]},"0.2.1":{"name":"seneca-jsonrest-api","version":"0.2.1","description":"A HTTP JSON REST API for Seneca entities","main":"jsonrest-api.js","scripts":{"test":"./node_modules/mocha/bin/mocha test/jsonrest-api.test.js"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"seneca":"0.5.x","connect":"2.12.x","mocha":"1.17.x","gex":"0.1.x"},"dependencies":{"underscore":"1.5.x"},"peerDependencies":{"seneca":"*"},"files":["README.md","LICENSE.txt","jsonrest-api.js"],"bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"homepage":"https://github.com/rjrodger/seneca-jsonrest-api","_id":"seneca-jsonrest-api@0.2.1","dist":{"shasum":"4adeaa09d37f4d6d2a00b3c1a43c43e8f796f4dd","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.2.1.tgz","integrity":"sha512-F/5oLYcjQo7iPLub1qF2hbiw2rIIOJup8BMVL0Du3fnLWtiAHPd+8v1lVSmZ55M1QKejc6/YJTw2y7JyGV21SA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA/mgRfCE4nRv8ol/8OzlYNCZa2OHRsl2e8H4K/xiUmwIgLsDqeVcZ1b4M0n1N9adxYbefs9G6qNNYC5n2mDUxTRM="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}]},"0.3.0":{"name":"seneca-jsonrest-api","version":"0.3.0","description":"A HTTP JSON REST API for Seneca entities","main":"jsonrest-api.js","scripts":{"test":"./test.sh","build":"./build.sh"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"body-parser":"^1.11.0","connect":"~3.3.4","docco":"^0.6.3","gex":"~0.2.0","jshint":"^2.6.0","mocha":"~2.1.0","seneca":"plugin","serve-static":"^1.8.1"},"dependencies":{"lodash":"~2.4.1"},"files":["README.md","LICENSE.txt","jsonrest-api.js"],"gitHead":"2f273c5764a943431fd160692a448688450470b0","bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"homepage":"https://github.com/rjrodger/seneca-jsonrest-api","_id":"seneca-jsonrest-api@0.3.0","_shasum":"6e976de8aaa761de93eca2e25024dfb8efc98866","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"dist":{"shasum":"6e976de8aaa761de93eca2e25024dfb8efc98866","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.3.0.tgz","integrity":"sha512-FtKaKeovXsQcOL6CzWUaUx4rtV96kXo+sXVXLMIHcziLS8DpqDzn32r6eHvoSkbnp9UuY6NXyRiCL6frqh5tAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBTEiVZX/KvwB9BGJIevbBfbaigULLZQCTFt9uqyohMAiByqvoVLv1vLW76koyalcD1uHWgxr1Y2P3NdmgF12YFAQ=="}]}},"0.3.1":{"name":"seneca-jsonrest-api","version":"0.3.1","description":"A HTTP JSON REST API for Seneca entities","main":"jsonrest-api.js","scripts":{"test":"./test.sh","build":"./build.sh"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"keywords":["seneca","json","rest","api"],"author":{"name":"Richard Rodger","url":"@rjrodger"},"license":"MIT","devDependencies":{"body-parser":"~1.11.0","connect":"~3.3.4","docco":"~0.6.3","gex":"~0.2.0","jshint":"~2.6.0","mocha":"~2.1.0","seneca":"plugin","serve-static":"~1.8.1"},"dependencies":{"lodash":"~2.4.1"},"files":["README.md","LICENSE.txt","jsonrest-api.js"],"gitHead":"b5c749de78694c599f67b999f1c1e47e36708133","bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"homepage":"https://github.com/rjrodger/seneca-jsonrest-api","_id":"seneca-jsonrest-api@0.3.1","_shasum":"cdbb067b10c86c15f247647330ca97b999365720","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"rjrodger","email":"richard.rodger@nearform.com"},"maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"dist":{"shasum":"cdbb067b10c86c15f247647330ca97b999365720","tarball":"https://registry.npmjs.org/seneca-jsonrest-api/-/seneca-jsonrest-api-0.3.1.tgz","integrity":"sha512-RXhUMjhYyJpvsrrSTpE6JDuXUxEuoPpScDEi5EdPOpi8Irq4ZsWGirHB+/UPynqeCx+lrN9JHNj0EOXbIrykAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCaVJqlHg219xMK2c5+IpclMnPy+Apd/vsYX/P46JeB+wIgRCKXxA/ApkhVIHE3Ajzum6xNEnRL6zLBhwkwYfQXEBY="}]}}},"readme":"# seneca-jsonrest-api - a [Seneca](http://senecajs.org) plugin\n\n## Seneca HTTP JSON REST API Plugin\n\nExposes your data entities as a [REST\nAPI](http://en.wikipedia.org/wiki/Representational_state_transfer). For\nexample, if you have a data entity called _foo_, then the following\nend points will become available:\n\n   * GET _/api/rest/foo_: return a list of all foo entities\n   * GET _/api/rest/foo/:id_: return a single foo entity by identifier\n   * POST _/api/rest/foo_: create a new foo entity\n   * PUT _/api/rest/foo/:id_: update a foo entity\n\nYou can use the plugin options to change the URL prefix, and to add\nadditional behaviours.\n\nNote that it is not necessary for the underlying entity to be\npersistent. You can define a virtual entity _foo_ by providing actions for\nthe patterns:\n\n   * _role:entity,name:foo,cmd:save_\n   * _role:entity,name:foo,cmd:load_\n   * _role:entity,name:foo,cmd:list_\n   * _role:entity,name:foo,cmd:remove_\n\n\n## Options\n\nYou can _seneca.use_ this plugin multiple times to create multiple\nindependent API end points, so long as you specify different\nprefixes. The _prefix_ option is used to create separate action\npatterns so that they do not conflict.\n\n   * _prefix_: a custom prefix\n   * _pins_: an array of entity pins, with properties _name,base,zone_. These define the data entities that will be exposed.\n\n## Examples\n\n   * [tests](https://github.com/rjrodger/seneca-jsonrest-api/tree/master/test) in this repository\n   * [seneca-examples/api-server](https://github.com/rjrodger/seneca-examples/tree/master/api-server)\n   * [seneca-data-editor](https://github.com/rjrodger/seneca-data-editor)\n\n\n## Support\n\nCurrent Version: 0.3.1\n\nTested on: Node 0.10.36, [Seneca](//github.com/rjrodger/seneca) 0.6.1\n\n[![Build Status](https://travis-ci.org/rjrodger/seneca-jsonrest-api.png?branch=master)](https://travis-ci.org/rjrodger/seneca-jsonrest-api)\n\n[Annotated Source Code](http://rjrodger.github.io/seneca-jsonrest-api/doc/jsonrest-api.html).\n\nIf you're using this module, feel free to contact me on Twitter if you\nhave any questions! :) [@rjrodger](http://twitter.com/rjrodger)\n\n[![Gitter chat](https://badges.gitter.im/rjrodger/seneca-jsonrest-api.png)](https://gitter.im/rjrodger/seneca-jsonrest-api)\n\n\n## Install\n\nTo install and add to the dependencies list in the package.json file\nfor your project:\n\n```sh\nnpm install seneca-jsonrest-api --save\n```\n\nAnd in your code:\n\n```js\nvar seneca = require('seneca')()\n    .use( 'jsonrest-api' )\n```\n\n\n\n\n\n\n","maintainers":[{"name":"rjrodger","email":"richard.rodger@nearform.com"}],"time":{"modified":"2022-06-26T17:38:35.622Z","created":"2013-02-24T13:13:02.085Z","0.1.0":"2013-02-24T13:13:04.005Z","0.1.1":"2013-02-25T06:12:37.329Z","0.1.2":"2013-07-09T17:13:52.982Z","0.1.3":"2014-01-29T06:53:23.352Z","0.2.0":"2014-01-31T13:57:43.153Z","0.2.1":"2014-02-11T09:46:55.524Z","0.3.0":"2015-02-01T13:58:32.319Z","0.3.1":"2015-02-01T20:42:46.130Z"},"author":{"name":"Richard Rodger","url":"@rjrodger"},"repository":{"type":"git","url":"git://github.com/rjrodger/seneca-jsonrest-api.git"},"readmeFilename":"README.md","homepage":"https://github.com/rjrodger/seneca-jsonrest-api","keywords":["seneca","json","rest","api"],"bugs":{"url":"https://github.com/rjrodger/seneca-jsonrest-api/issues"},"license":"MIT","users":{"tmurngon":true}}