{"_id":"seraph-resource","_rev":"56-020a066f60d24b77ef0ce2c46c87d824","name":"seraph-resource","description":"expose crud functions for a seraph model over http","dist-tags":{"latest":"1.0.0"},"versions":{"0.1.1":{"name":"seraph-resource","version":"0.1.1","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.2.0"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","seraph_model":"*"},"_id":"seraph-resource@0.1.1","dist":{"shasum":"311e00ed7ab8a6063b6a0d7e818a44d7407944d3","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.1.1.tgz","integrity":"sha512-rdk+8XDeLd5gI0QtKkQAN9cSmrWXYN0TmDLUOU3dad02GVkCVmW2IMTOmXLJbonsnfEdH2XCDpTFbkqC4w0NPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmixRUQffIxXYXff5aWJqgfbYnsXw8F/antJNN+RrhnAiEAlbtLpGg+owjra+i8IobBTIup9DizPw/Jq3Wy2Jj/OoA="}]},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.1.2":{"name":"seraph-resource","version":"0.1.2","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","seraph_model":"*","async":"*"},"_id":"seraph-resource@0.1.2","dist":{"shasum":"87a95e64f92eafa52fde4c1161007b9dfac59c95","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.1.2.tgz","integrity":"sha512-xstRVGuUnaON3nxJmHyGLPDNpCUGoYpJ0JBei6Z7OqqBSBg6e0hs1s4LvX7mKWD3lpOR3bbkJ8Jw8S6GmmV3+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1oz7s0Rqpyjwrt3AlkOZP0lVyB7NI6BEeCJ/yi3XD0gIgTg4u/v/aIWx0zex+u0jjjnBRuxoNbAZAC7gPu6SfLFo="}]},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.1.3":{"name":"seraph-resource","version":"0.1.3","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","seraph_model":"*","async":"*"},"_id":"seraph-resource@0.1.3","dist":{"shasum":"4490e9ea7c14d71f5cfc8cc062f9782daba557c2","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.1.3.tgz","integrity":"sha512-YQTcd3ZfMwlUsrM6sVjJy6bZCoGAHORSD2lJh38/E8f5kQQsH2/ZrqsJv+qG6sJtImLxFg5M7WQX2kR3RzZN7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzoJ3M0zweE3Ph0lL1w7tczeMstTIDmaXm38qycKEoEAiEA/iYaDSgZkWVlLQQqjRmGLiAIPtNmLg2kDzePGUouxDI="}]},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.1.4":{"name":"seraph-resource","version":"0.1.4","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","seraph_model":"*","async":"*"},"_id":"seraph-resource@0.1.4","dist":{"shasum":"0a404897c39608b45a7641b3187be8ffdd8dcb31","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.1.4.tgz","integrity":"sha512-j8ySfcMdHadCVIYlN7wgRDcrH4wBUcacd3ukWsyUjeoZi1vGPfjIC3hLG59ZOny+EDlHmgzSkbY6SM9CW40AXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlGel82gFNOG5L8Rt3SmSPnTOTUe8t53ZjbE30c4/TkwIhAI42VYhfLFx0iR+dUcH0XyJGAjlqWLtrNOrAKpSHBit8"}]},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.0":{"name":"seraph-resource","version":"0.2.0","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.1.1","neo4j-vm":"~0.1.6","seraph":"~0.4.0","neo4j-supervisor":"~0.1.1"},"_id":"seraph-resource@0.2.0","dist":{"shasum":"45c741a1554d019abd9af292914fab7619d6508e","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.0.tgz","integrity":"sha512-7L98+pF9MsLf2pGnra/qDZJt/6e8GP21MqbKsb1rh5kojrsLqk6PhJhr3GHSdKwcGVAt8oZ1oT9RS9aaX54Oww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDShYjOw6YBDHS0jj14CY4XPfCIs+CLVHUbNWIcL50hjgIgBg8DXo0jg0sPBkCstlhl92wBZIFqeSucnIiGQF0hr94="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.1":{"name":"seraph-resource","version":"0.2.1","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.3.0","disposable-seraph":"~0.1.8"},"_id":"seraph-resource@0.2.1","dist":{"shasum":"b31b663f04534f47a32de8dc39ea7785c6852ea9","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.1.tgz","integrity":"sha512-OY1iS+7DIF7SFTCjN7A/aUzarzJdSR4WDwfQPw40B5iVjeSak2Sl5fUQN5U0fQKddK7Jtb5AYYmNy7tJoZ/98A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLZgiiIc53ThKToqgfrX6zbJ9/bGgc0XWMANh5jEwa/AiAkKmnkkOk5RYJ/A2Lk+LPPXbsCNQMyyED3DFV117xLug=="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.2":{"name":"seraph-resource","version":"0.2.2","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.3.0","disposable-seraph":"~0.1.8"},"_id":"seraph-resource@0.2.2","dist":{"shasum":"afde7b6a04a6799d4b0eed189caf363ab38f5340","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.2.tgz","integrity":"sha512-YZbNodwfv1mUsWqo9t8xxKi2ecOeyT5rxb8lIKpRAay6P2OjE5CZrtGVmg0AKDyrQlmjlDVNb+nL0VE6vIeGoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCBe1hjnBDQSEoOt2MHVcsthJ3HfHcILQYp1rGAqYKLAIhAOnfExqh+bUPvEGuc945bcRcleI0u+4tAjAUDlLQuLml"}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.3":{"name":"seraph-resource","version":"0.2.3","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.3.0","disposable-seraph":"~0.1.8"},"_id":"seraph-resource@0.2.3","dist":{"shasum":"5c4b3f631f75563569abf9286f53d4725cfa5c95","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.3.tgz","integrity":"sha512-ZhFyeta7SXy5cUMaymYBMD1sI2g25HYd2RuF1CXFYWdkUm5wE47V2v42iDMC+1u+Ba6R7Bi0URCmEMma8a4aig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNqKRf9fCLLyd4VVHeUMI26gCRsQlcBolJoZ5b6pkj4AiEA4Bido12mCsa3WOpmR5eoZ7Uw1dO83z+uOdGHQgFF/ro="}]},"_npmVersion":"1.1.62","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.4":{"name":"seraph-resource","version":"0.2.4","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.3.0","disposable-seraph":"~0.1.8"},"_id":"seraph-resource@0.2.4","dist":{"shasum":"37bde0e1067629d4d03d6f4e9a52b4dc5123479e","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.4.tgz","integrity":"sha512-ydNILj8ieNTh4hlPBc8BkKNOaJjkoUoJv71q5VIY8rwRE+H1IbhDEzGHHfCQjP8FHtAGqkYCIgc+uedY9+kkgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqgqgkaOjX5/BJvS7NeYVNOckSPrfiwEDMrTc94CgeEAiEAx3n+OsOxELBmCDhfoTtGOQB/IqCYDz4MM/l4XyT1hGI="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.5":{"name":"seraph-resource","version":"0.2.5","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"peerDependencies":{"seraph-model":"~0.4.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.6","disposable-seraph":"~0.2.5"},"_id":"seraph-resource@0.2.5","dist":{"shasum":"18821dfc5d580df2381b85d2fe0ab9c004414f18","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.5.tgz","integrity":"sha512-lsZnY5xSpTDP+BxX0K2tcfBMrWwFmWlUNdGoe8KYC5JvG4juaJZEJrs7EAKm+SJSuNfXwqlKyQu42lIu4geEqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8oUyl4TCU68hAJGAgmqAZEHcBraeWkk3U8g7vAVrm4AiARlECtSw4q6lP22zc4CtMsXZgBkGmk+nnPN0SmQPBHsw=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.6":{"name":"seraph-resource","version":"0.2.6","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"peerDependencies":{"seraph-model":"~0.4.11"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.11","disposable-seraph":"~0.2.5"},"_id":"seraph-resource@0.2.6","dist":{"shasum":"194b8afb0a74bc79e7fcdcc81b6cd57e236faa3b","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.6.tgz","integrity":"sha512-ihK1FkPFbMn/9BVSWCsJmk+XuK4KzpYtfdFsRb+XXsMotPq06rpXmJA+4i71I2Xsil0e3AGj/S1DCTeV9NmcQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAF/ElHXMuGAUBm1DaNoVIpqX+OIHvXJKPtHb5fTFyCtAiAhwd6Pb+NJBe9Oi8EaQgTch8QRpb/zfjl9Fxck0nvcRQ=="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.7":{"name":"seraph-resource","version":"0.2.7","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.11","disposable-seraph":"~0.2.5"},"_id":"seraph-resource@0.2.7","dist":{"shasum":"cfa15257a5aac5a80f24bed0f65d5d923be6eca6","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.7.tgz","integrity":"sha512-mULoCXymO1ZvrQkHN1vDVFbsblKRjftAP9T86IrS+3aO+rbtCnh8CMibw3N16Id6g9BYkKCpGIoGdpxG/S3jTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCWPEYpVxsypUjhUnvPTcqaC0m/q7nAtdq0F+NMg5bRAiEA2sodHn1b3eMqOUQHs80BtvX6+l+bsURUVs9It01hN6w="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.8":{"name":"seraph-resource","version":"0.2.8","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.5"},"_id":"seraph-resource@0.2.8","dist":{"shasum":"0642633c25de137a8f71f83edae7b51279ed6753","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.8.tgz","integrity":"sha512-nRPeh+cLBayI3igSJaGtouJnDXS+TQ/7N2nnWBnoJ+T4VSeDA+OWT6owx/VJl4WsM4dP/zFvAi5MJGOKh4jQnQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQUYZRYNI9AyUe6bZcZKXixenGNvZ3PvzzCWvLAdV1cQIgHKVra7QtyLr+iP+c9cPHlzLtb7WWBK0xDWo63Yy1gNc="}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.9":{"name":"seraph-resource","version":"0.2.9","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"_id":"seraph-resource@0.2.9","dist":{"shasum":"048ea48339a8025150d8927bb63af3e5f4183073","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.9.tgz","integrity":"sha512-yMaaYx2M+uQziou7x3ySXB0UzltT8drx2HZrXPjuhANnR/GAn4yN2AntfPw4gBlUfYARcTI1czVJev0M7VXh7A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHpk7VJ2ao3tfXRxQMGmLDGjVmCoN37zVvOON6x5SM2gIhAOSzd2/H1QQF9k/wMlNuwA60t0pP+Jk3Zfrfe/ck1DXI"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.10":{"name":"seraph-resource","version":"0.2.10","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"_id":"seraph-resource@0.2.10","dist":{"shasum":"6d7e9afbad8f480e6c3fe253ea82f4b1cb61f169","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.10.tgz","integrity":"sha512-YmvpPkfImQkeNCqLAA4KtMbxXgs08MCffLJS1GKlw1D1djQhNEcniZ4WmuUnSR1sYRqulxmbQqdKwmvGxJUxXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYZyQgV0fnDA/UBOIAR3Rbb8Fbnr83x/vtpJUYVnf36AIhAJVLGzJq4Qd5AFDKpHL5URdJpz7VtR62Q84elY6SKrV9"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.11":{"name":"seraph-resource","version":"0.2.11","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"_id":"seraph-resource@0.2.11","dist":{"shasum":"b3653c63c499059042b93d34d2416f51923e2bb3","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.11.tgz","integrity":"sha512-ajNQEHXG+WYFZ4RE0RCSZ4kdv3wwYisEMIz2w2sCLbVmTChIZP37hAkQbZPkjYCo82k6VxDiZh7sAmT9bQ1wpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdvziwxOUrZbisSD4uGwdJZu6uNQzH6U+5HiUdhimcYgIhAIu8CN++37dlOfifqsEctdRfxYD9fZoMHRR2ZYvDUO8j"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.12":{"name":"seraph-resource","version":"0.2.12","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"_id":"seraph-resource@0.2.12","dist":{"shasum":"1b5daaf134622b99c13920bdd0c09eb52d0aeb95","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.12.tgz","integrity":"sha512-KA0e/5w/5rYy+QnTsxwa+KEQZivnHrR8lgReQjOsjnz3FAGy3B9VXba9J527u6rDZm1q/bBjiXvtrv8ETftRww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCL3CBbKdr8/RK1FDyyHGX6dinIqdjV7OTv9Nrx6hP3uAIgCsGitgNrBT3usZ2klvxAh99Z1DGIiWqoMnObV4LVRPo="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.13":{"name":"seraph-resource","version":"0.2.13","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.4.0","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"_id":"seraph-resource@0.2.13","dist":{"shasum":"7581ff7d1417934f9f8449f767fa3cfe8d4b2c5b","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.13.tgz","integrity":"sha512-9HpN6VWv89auQqovA5nbzDpzZpAsVrWtwsriWYBlxUr9Zk6BroxhVzKDpnHqqk6UayCYbXD+7xy2igMg+lXu4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxXT3o/Bu5oTT+l4szKY6Ovmoi9uxKMniuw1ePmx6VHgIgVELqW9OLMeaFDUKtSEYABzdiVjmw/GgBu52EXJQmQF4="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.2.14":{"name":"seraph-resource","version":"0.2.14","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 500 -t 360000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"underscore":"~1.3.3","controller":"~0.5.1","naan":"~1.3.10","async":"~0.2.6"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.4.12","disposable-seraph":"~0.2.7"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.2.14","dist":{"shasum":"0cc773e3b136d9f5c3d0e61297ce8f2f637f5269","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.2.14.tgz","integrity":"sha512-ST40R+r1Nc3iyoX3nKWnP8Ed1a6ZoSCmR4vx3mXbgs+mn0JJZVP+FKKlrN62dGF6366vgWIKuh+f3M6fUIzcPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxuCTfkM3L+aBnDJ93M6iSxNU3Gs+7bKEHnpAsMsAOjAIgMHnKlm3FMVEgWMjCbe0KtkfdR4mCZWld+RsThxVo8ZE="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.3.0":{"name":"seraph-resource","version":"0.3.0","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^0.6.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.6.12","disposable-seraph":"~0.3.0"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.3.0","dist":{"shasum":"b64507dcd1d8e0b8160c00c6008b5e6ad6b060a1","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.3.0.tgz","integrity":"sha512-yvc/zIOXjLFjQt2XyQRYkD8Ko8b/CWYzfA+WCSpSVkpwxX6kKKmkLGNwr/0spmSlZpB5631apMYqYzjxvJKNbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK6IjPGzGfHRrOGqYR89rXuStMYGcSqPIxPhz/uM321QIgQ+F2I6i9a6ZSwV1+anGNpYmf7vIjZJvBTml+DvPAZ9Q="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.3.1":{"name":"seraph-resource","version":"0.3.1","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^0.6.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.6.12","disposable-seraph":"~0.3.0"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.3.1","dist":{"shasum":"479e5577931a251b8407039c1e097897699b5501","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.3.1.tgz","integrity":"sha512-Z9btjk6j/EYgpmy5Guev6L2ff6oZHUz1hKktWGblZlrhC1rLA+Ni3B7l7bSsiCXWAPeCFNK2ELaVs5l0JQBMvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+Skula5Y+Xm7SvY+s12WCqSMtjX15R+qvQBDKRnZBkQIgUqiIhHR4vse1ZcuS4hMg+/lCsLiRuIhPbCerNSEJRLs="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.3.2":{"name":"seraph-resource","version":"0.3.2","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^0.6.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.6.12","disposable-seraph":"~0.3.0"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.3.2","dist":{"shasum":"7a5d98b539395ee4aa0ce882594fcb4fe2934770","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.3.2.tgz","integrity":"sha512-ZcV3ObHVtGsw9UA+Q1P55e970EtHi5Qu26wXY0fed9oy58bM9dTtI0T6Zl6Roptmcf9+yS9X69Gi/tarxAt26w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDAHPl1Orl4ySG6rqFnIfmwx87JdlLOqlP2t8PKJsGDUgIhALJfZY95z3VrAKrWZzEUofBeF3h1eBSg7pYbx5GvFXa9"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.3.3":{"name":"seraph-resource","version":"0.3.3","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^0.6.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"mocha":"*","supertest":"*","express":"*","async":"*","seraph-model":"~0.6.12","disposable-seraph":"~0.3.0"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.3.3","dist":{"shasum":"b29d52f912711197398ccb09a65b97f115a7310b","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.3.3.tgz","integrity":"sha512-Md2Z0Lj/wZkj1kh67V/gan+73lQI6VlasX46Lc/2UZjAIQVa/02tkvjQHh5gfZfAXmM14m46TpltOEVUYvs56w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFo3Zj44qMh9l1ln+it8RDtW9xwIuWCRCk49xVayXeMgAiEAu0g36MyQN0IU8ZoDAS2nIxc0D4UZHGleamITbdD8Du4="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"0.3.4":{"name":"seraph-resource","version":"0.3.4","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^0.6.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"async":"*","disposable-seraph":"^0.3.2","express":"*","mocha":"*","seraph-model":"~0.6.12","supertest":"*"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource","_id":"seraph-resource@0.3.4","dist":{"shasum":"f917e14f67bcb4fe7357267e8e8df9c01195a41b","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-0.3.4.tgz","integrity":"sha512-FLafTNQcNBQpuZNu8lgHYndu9PlxW8qUeA1nuUWYJHCfPL/lL+dwU++mjovRyZI6FyTuhplVG0jJGFXSIRyUOQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC25KVGaOUkRM+/gpdYX854YlrZVXkta18o/WZlF/277wIhAPn73BS1woGi3PqHRAL6P4fbZNF0DuFh6TgFVaKcpQ2h"}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}]},"1.0.0":{"name":"seraph-resource","version":"1.0.0","description":"expose crud functions for a seraph model over http","main":"lib/resource.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha -s 5000 -t 10000 -R spec"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"license":"BSD","dependencies":{"async":"~0.2.6","controller":"^1.0.0","naan":"~1.3.10","underscore":"~1.3.3"},"devDependencies":{"disposable-seraph":"^0.5.1","express":"^4.16.2","mocha":"^4.0.1","seraph-model":"^0.10.1","supertest":"^3.0.0"},"gitHead":"92b7e43ddb3df0f04a7ec5397614c358c45c4fbd","bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"homepage":"https://github.com/brikteknologier/seraph-resource#readme","_id":"seraph-resource@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.0.0","_npmUser":{"name":"jonpacker","email":"contact@jonpacker.com"},"dist":{"integrity":"sha512-iISQ4maFlh63R8LOBZ35lzwwatxfbaAFu6+N6w7MsRIQLX7l7bC2LvH1h/Fju7HZ3JhbvlhT6TxkosDKljFezA==","shasum":"796c9c9ad7bd62d6807217b4e5173b8c0f6cc285","tarball":"https://registry.npmjs.org/seraph-resource/-/seraph-resource-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqtkHA3ASbnY9rAzomJN4soWUZLKeXJSNGhMIsUCBrLwIhANhL0JS+Tg6Fx9XHFpqLHvSwia0L9/v0+J6FykPtGGOt"}]},"maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/seraph-resource-1.0.0.tgz_1510570606559_0.4856861047446728"}}},"readme":"seraph-resource\n====================\n\ncreates a [controller](http://github.com/brikteknologier/controller) with crud\nmethods for a [seraph](http://github.com/brikteknologier/seraph)\n[model](http://github.com/brikteknologier/seraph-model).\n\n# why?\n\n[seraph](http://github.com/brikteknologier/seraph) gives us access to a neo4j \ndb. [seraph-model](http://github.com/brikteknologier/seraph-model) gives us\nmodels for this db. __seraph-resource__ gives us a base controller for these\nmodels. \n\n# install\n\n`npm install seraph-resource`\n\n# example\n\n## setup\n\n```javascript\nvar db = require('seraph')('http://localhost:7474');\nvar User = require('seraph-model')(db, 'user');\nvar resource = require('seraph-resource');\n\nvar express = require('express');\nvar app = express();\nvar Users = resource(User);\n\napp.use(Users);\napp.listen(3000);\n```\n\n## in action\n\n__Create a new node__\n```\n>> curl -d '{\"name\":\"Jon\",\"age\":23}' http://localhost:3000/user/ -H \"Content-type: application/json\"\n{\"name\":\"Jon\",\"age\":23,\"id\":8}\n```\n\n__Read an existing node__\n```\n>> curl http://localhost:3000/user/8\n{\"name\":\"Jon\",\"age\":23,\"id\":8}\n```\n\n__Update a node__\n```\n>> curl -X PUT -d '{\"name\":\"Jon Packer\",\"age\":23}' http://localhost:3000/user/8 -H \"Content-type: application/json\"\n{\"name\":\"Jon Packer\",\"age\":23,\"id\":\"8\"}\n```\n\n__Delete a node__\n```\n>> curl -X DELETE http://localhost:3000/user/8\nOK\n```\n\n__And more!__\n\n# usage\n## resource(seraphModel, [options])\n\nCreates a [controller](http://github.com/brikteknologier/controller) with CRUD \nactions implemented and routed for the given seraph model. \n\n**options**\n\n* `relRoutes`: (defaults to false) - add routes that expose the ability to\n  create, read and update relationships to and from the model. This is turned off\n  by default because there is no easy way to consistently control access to the\n  nodes being modified, and because it can create some security loopholes. If \n  this is not a concern for your usecase, you can turn it on. The routes that are\n  added are listed in the 'default actions' section below as 'rel:read', \n  'rel:nodes', and 'rel:create'.\n* `strictContentType`: (defaults to true) - only accept `application/json`\n  content types. If set to false, more abstract content types such as formdata\n  will be parsed by [connect-bodyParser](http://www.senchalabs.org/connect/middleware-bodyParser.html) as well.\n\n### Default actions\n\n* `'read'` read a node and send as json (required params: `:<model.type>`)\n* `'create'` create a new node\n* `'update'` update a node (required params: `:_id?`)\n* `'update-root'` update the root of a model (exclude compositions). required\n  params: `:_id?`.\n* `'delete'` delete a node (required params: `:_id?`)\n\n#### Only available if `relRoutes` option is specified\n\n* `'rel:read'` read the node's relationships (required params: \n  `:_id`, `:_type`, `:_direction`)\n* `'rel:nodes'` read the node's related nodes (required params:\n  `:_id`, `:_type`, `:_direction`)\n* `'rel:create'` create a relationship (required params: `:_from`, `:_type`,\n  `:_to`\n\nIn addition, if the model has `fields` defined, CRUD actions are provided for\neach field. For example, if model.fields includes `'name'`, these actions are\ndefined: `'read:name'`, `'create:name'`, `'update:name'`, and `'delete:name'`.\nThese all take a `:<model.type>` param.\n\n\\*\\**note - params are prefixed with an underscore to prevent conflict with\nmodel types*\n\n## default routes\n\nIf `model.type` is set `'model'`:\n\n```\nGET    /model/:model                        -> 'read'\nPOST   /model/                              -> 'create'\nPUT    /model/:_id?                         -> 'update'\nPUT    /model/root/:_id?                    -> 'update-root'\nDELETE /model/:_id?                         -> 'delete'\n\nthese are only available if the \"relRoutes\" option is specified\n\nGET    /model/:_id/rel/:_type/:_direction?  -> 'rel:read'\nGET    /model/:_id/rel/:_type/:_direction?/nodes -> 'rel:nodes'\nPOST   /model/:_from/rel/:_type/:_to        -> 'rel:create'\n\nadditionally, if fields are defined (replace 'field' with the target field below)\n\nGET    /model/:_id/field -> 'read:field'\nPOST   /model/:_id/field -> 'create:field'\nPUT    /model/:_id/field -> 'update:field'\nDELETE /model/:_id/field -> 'delete:field'\n\nfor compositions: (replace 'comp' with the target comp name below)\n\nGET   /model/:model/comp -> 'read:comp' (model.readComposition)\nPOST  /model/:_id/comp -> 'push:comp' (model.push)\nPUT   /model/:_id/comp -> 'update:comp' (model.saveComposition)\n\n```\n\n\\*\\**note - params are prefixed with an underscore to prevent conflict with\nmodel types*\n\n## middleware groups\n\nResource groups each of the actions into middleware groups to make it easier\nfor you to apply targeted middleware for actions. For more information on how\nthe groups work, see the [docs in controller](https://github.com/brikteknologier/controller#groups).\n\n* `'relationships'` actions that will work with relationships (note that there\n  will be nothing in this group unless relationship routes are turned on)\n* `'properties'` actions that will work with individual properties\n* `'compositions'` actions the work with composited nodes\n\n## express param\n\nEach resource has a `param` property which can be used to resolve instances of\nthis model when specified in express routes. For example:\n\n__example__\n```javascript\nvar User = model(db, 'user');\napp.param(':user', User.param);\napp.get('/posts/:user', function(req, res) {\n  // Because :user was defined on the route, `req.user` is now set to the user\n  // specified by the id passed at that point. \n  Posts.where({user: req.user.id}, function(err, posts) {\n    res.json(posts);\n  });\n});\n```\n\n## complete demonstration\n\n### Server\n\n```javascript\nvar db = require('seraph')('http://localhost:7474');\nvar User = require('seraph-model')(db, 'user');\nvar resource = require('seraph-resource');\n\nvar express = require('express');\nvar app = express();\n\nUser.fields = ['name', 'age', 'country'];\nvar Users = resource(User);\n\napp.use(Users);\napp.listen(3000);\n```\n\n\n__Create a new node__\n```\n>> curl -d '{\"name\":\"Jon\",\"age\":23}' http://localhost:3000/user/ -H \"Content-type: application/json\"\n{\"name\":\"Jon\",\"age\":23,\"id\":8}\n```\n\n__Read an existing node__\n```\n>> curl http://localhost:3000/user/8\n{\"name\":\"Jon\",\"age\":23,\"id\":8}\n```\n\n__Update a node__\n```\n>> curl -X PUT -d '{\"name\":\"Jon Packer\",\"age\":23}' http://localhost:3000/user/8 -H \"Content-type: application/json\"\n{\"name\":\"Jon Packer\",\"age\":23,\"id\":\"8\"}\n```\n\n__Delete a node__\n```\n>> curl -X DELETE http://localhost:3000/user/8\nOK\n```\n\n__Create a relationship__\n```\n>> curl -d '{\"since\":\"2005\"}' http://localhost:3000/user/8/rel/friend/6 -H \"Content-type: application/json\"\n{\"from\":8,\"to\":6,\"id\":0,\"type\":\"friend\",\"properties\":{\"since\":\"2005\"}}\n```\n\n__Read a relationship__\n```\n>> curl http://localhost:3000/user/8/rel/friend/out\n[{\"from\":8,\"to\":6,\"id\":0,\"type\":\"friend\",\"properties\":{\"since\":\"2005\"}}]\n```\n\n__Create a property__\n```\n>> curl -d '\"Australia\"' http://localhost:3000/user/8/country -H \"Content-type: application/json\"\n{\"name\":\"Jon\",\"age\":23,\"id\":8,\"country\":\"Australia\"}\n```\n\n__Read an existing property__\n```\n>> curl http://localhost:3000/user/8/country\n\"Australia\"\n```\n\n__Update a node__\n```\n>> curl -X PUT -d '\"Norway\"' http://localhost:3000/user/8/country -H \"Content-type: application/json\"\n{\"name\":\"Jon Packer\",\"age\":23,\"id\":\"8\",\"country\":\"Norway\"}\n```\n\n__Delete a node__\n```\n>> curl -X DELETE http://localhost:3000/user/8/country\n{\"name\":\"Jon Packer\",\"age\":23,\"id\":\"8\"}\n```\n","maintainers":[{"name":"jonpacker","email":"contact@jonpacker.com"}],"time":{"modified":"2022-06-26T17:52:55.990Z","created":"2012-08-06T08:54:41.512Z","0.1.1":"2012-08-06T08:54:43.249Z","0.1.2":"2012-08-16T12:01:39.773Z","0.1.3":"2012-08-20T09:52:39.738Z","0.1.4":"2012-08-20T10:39:49.660Z","0.2.0":"2013-03-04T18:02:32.813Z","0.2.1":"2013-04-16T12:26:19.961Z","0.2.2":"2013-04-22T12:37:01.520Z","0.2.3":"2013-04-24T11:58:29.906Z","0.2.4":"2013-06-28T11:14:01.488Z","0.2.5":"2013-07-15T14:48:15.909Z","0.2.6":"2013-08-19T10:08:21.413Z","0.2.7":"2013-08-19T10:36:49.086Z","0.2.8":"2013-08-19T13:19:15.778Z","0.2.9":"2013-09-05T13:53:55.852Z","0.2.10":"2013-09-29T21:48:20.877Z","0.2.11":"2013-09-29T21:57:07.678Z","0.2.12":"2014-01-09T09:40:06.329Z","0.2.13":"2014-03-03T14:01:49.667Z","0.2.14":"2014-03-24T16:16:30.270Z","0.3.0":"2014-05-14T09:37:57.333Z","0.3.1":"2014-05-20T14:47:59.598Z","0.3.2":"2014-05-21T13:23:12.906Z","0.3.3":"2014-08-01T12:03:35.637Z","0.3.4":"2014-11-10T13:31:30.422Z","1.0.0":"2017-11-13T10:56:47.544Z"},"repository":{"type":"git","url":"git://github.com/brikteknologier/seraph-resource.git"},"bugs":{"url":"https://github.com/brikteknologier/seraph-resource/issues"},"license":"BSD","readmeFilename":"README.md","homepage":"https://github.com/brikteknologier/seraph-resource#readme"}