{"_id":"@bilgorajskim/ra-data-fakerest","_rev":"3-2d6100a10341cc240b7e4b8bef1687c7","name":"@bilgorajskim/ra-data-fakerest","dist-tags":{"latest":"2.1.0-2"},"versions":{"2.1.0-0":{"name":"@bilgorajskim/ra-data-fakerest","version":"2.1.0-0","description":"JSON Server data provider for react-admin","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"files":["LICENSE","*.md","lib","src"],"repository":{"type":"git","url":"git+https://github.com/marmelab/react-admin.git"},"keywords":["reactjs","react","@bilgorajskim/react-admin","rest","fakerest","local"],"author":{"name":"François Zaninotto"},"license":"MIT","bugs":{"url":"https://github.com/marmelab/react-admin/issues"},"homepage":"https://github.com/marmelab/react-admin#readme","dependencies":{"fakerest":"~2.1.0"},"peerDependencies":{"@bilgorajskim/react-admin":"^2.0.0"},"publishConfig":{"access":"public"},"_id":"@bilgorajskim/ra-data-fakerest@2.1.0-0","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"},"dist":{"integrity":"sha512-To2JJvTH2RweYsIbbr+mJ+dmuBKK8nSRIkZhnvTd2umRp2L4SkPP24a3BaVW/NFaRqhkZ1vZDUtv9Oa5s+K+1A==","shasum":"edfa8640f0c2c014c10f6cdcb71d837482f14d55","tarball":"https://registry.npmjs.org/@bilgorajskim/ra-data-fakerest/-/ra-data-fakerest-2.1.0-0.tgz","fileCount":3,"unpackedSize":8955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNwQXCRA9TVsSAnZWagAA/7UP/2YSvdc8Iu8xXTpZTmx0\n69g98MLgSrkhHnrEIQSCJxk//kYWTF/xoiImPQP8B6q+rFVg476xChezAwsr\niPeHOBtesPdtoAVTfjrDnTNLZ2TkO5KgKgckeuU/zK0kkR7S2jYk/oRJShsI\nYCquHhO7Cb7vnoQpcV5/VkNz8jnlqTrbUgsmtJoAmFCKExtKBAG/+Q4tDnTL\nSq1aogZzb5zi4MM48g0eu3R7CtcKAqAu3KfTu+NdxD7URoX+lO8eaf7lpNMf\nZUovSO3HSvamUP3UnCxfCvpDihmGevi8MQqfqqbn+6Su0UlqO50NMzpKNIhj\nMn0lqqZMwNVru2gHBl9CEAkPBLLxFO4rqI302lXlo1iRFepBOcaPt6lUBHf3\n/S7nvlHarLQvWJwEH1tRlKDCrjWnXjfOOwLC+J5rI90BubWhW6BpV1czodaY\nh2tbLMbR1tg3hTdZVfd51eHmXPUQEjMD2OrcMyRp6H6C//CNFLiHWL/fQK4k\nMPh0lBkdMEqNk1Zyrw0PyMEJb/kfqcg5iFhZmxwa9lee3uNLHs575GktNGaD\nydg1gfpKkFx+Z7nI3+kswB8rC3cw5XrczmwOJYSpNgKHW5QtMymQhj0yPEo8\nJ0b4WqAIkp9DFoX93qsB28Ff/5L2F8iTrH5361yaBHdz3sQ3963dLVBpesTN\nl4Vl\r\n=e++4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsHIP4lNkJDy1bvynXvlcrP2KZJEfmJuZr0RayKIFLSwIgUu0XZrv/oipSHmANAwCf2+FCoDm4XgYDPkH7r3NsYgM="}]},"maintainers":[{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ra-data-fakerest_2.1.0-0_1530332182969_0.06946737083710164"},"_hasShrinkwrap":false},"2.1.0-1":{"name":"@bilgorajskim/ra-data-fakerest","version":"2.1.0-1","description":"JSON Server data provider for react-admin","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"files":["LICENSE","*.md","lib","src"],"repository":{"type":"git","url":"git+https://github.com/marmelab/react-admin.git"},"keywords":["reactjs","react","@bilgorajskim/react-admin","rest","fakerest","local"],"author":{"name":"François Zaninotto"},"license":"MIT","bugs":{"url":"https://github.com/marmelab/react-admin/issues"},"homepage":"https://github.com/marmelab/react-admin#readme","dependencies":{"fakerest":"~2.1.0"},"peerDependencies":{"@bilgorajskim/react-admin":"^2.0.0"},"publishConfig":{"access":"public"},"_id":"@bilgorajskim/ra-data-fakerest@2.1.0-1","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"},"dist":{"integrity":"sha512-uUMsWJquKVyTgLNTaQGJF9fhxzw4z+iPmxhSCFEMhiJmyQG5Mccb+gUUGhoGq9V54MggsUfmdPKSPePaQ0w5oQ==","shasum":"0673f9b7e99c941561377441dd90e7f85bf284e0","tarball":"https://registry.npmjs.org/@bilgorajskim/ra-data-fakerest/-/ra-data-fakerest-2.1.0-1.tgz","fileCount":3,"unpackedSize":8955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNwXrCRA9TVsSAnZWagAAlE8P/iGqZ+xi8iL7gg1iOk07\nEYRxD6N1eDk3CbNKnoin3qC+KG5LD3YGqcu5jPzHt634lrAEQA/zZ56FaG61\nhElZOVsv2G7upOolJXR3Y5gooKZqJuNdgCfMjT305NYVty0mS7I06VG8eYIV\nt8qTiDPdM/6ji2GAH8+sfn54cn9rVx1foA3nt5BIYLA1LJz96pgTnWh1lQB/\n8+jNk0ROx/kXuO2AQdW23ewujndsZ7nu9mA9yfIcPAshS/PkLXqX12Dfd/v+\nNV+ci/2y3IveasGr+kEQcpuyvnRbnAwkDqbQESiMPOrzp1BzX9NuJxst47Eq\nOI8+tSjpnDalBXnqvJvAjn8rrqRYNs9I1U+UY2DC+na8EZGIxmvajdmodEOZ\nMq9NnJ2I1LfMTV/BnwxSuEYKZ3D9n3oLbSrCJtu0jGcl2QdgXadGvOyuf/oj\n1LvHgQSO49D4u4L6gVt3uSycn11qV7AT7RvO7sYDbzNqTABeK4/npBzPc/qr\nKzVt/6FA+PbDhqRyAgUpw/wFhCB8zBZxcGaCUusClg7DtMMqlAynWiPUPJWJ\n7UZG+1VNUpkwN4Wh0hXuRLYCFkNZQdPhTId7e0Y0ncUdTMEATwmp+aJVhf32\nEK6/1RKkVyrj4RbxvvskYZE7mGbzrO5YEsw8qgH/YwGZ7MqXCnDlZ738365J\ng8AW\r\n=KUjg\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOa+E63PTGKwbRFXG8TyaZHSbhrzRoRSpcxld6CypA/AiA57VNm2ZgIqIqgFNTJ7Vjvm+7OJ7vMnBuJheB/0qMjiQ=="}]},"maintainers":[{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ra-data-fakerest_2.1.0-1_1530332651944_0.33820066294871176"},"_hasShrinkwrap":false},"2.1.0-2":{"name":"@bilgorajskim/ra-data-fakerest","version":"2.1.0-2","description":"JSON Server data provider for react-admin","main":"lib/index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"files":["LICENSE","*.md","lib","src"],"repository":{"type":"git","url":"git+https://github.com/marmelab/react-admin.git"},"keywords":["reactjs","react","@bilgorajskim/react-admin","rest","fakerest","local"],"author":{"name":"François Zaninotto"},"license":"MIT","bugs":{"url":"https://github.com/marmelab/react-admin/issues"},"homepage":"https://github.com/marmelab/react-admin#readme","dependencies":{"fakerest":"~2.1.0"},"peerDependencies":{"@bilgorajskim/react-admin":"^2.0.0"},"publishConfig":{"access":"public"},"_id":"@bilgorajskim/ra-data-fakerest@2.1.0-2","_npmVersion":"6.1.0","_nodeVersion":"10.4.0","_npmUser":{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"},"dist":{"integrity":"sha512-SXDLh4nHqXK3I/GD5nr/CgizqLdwyR05Vt3a9zMjWiE3clkE1VWt2WtfVyL08MFlsyAE1AjaTfIDpDseqFTnNg==","shasum":"838769c19ebd08d87cc09b338436446ebe81dcaa","tarball":"https://registry.npmjs.org/@bilgorajskim/ra-data-fakerest/-/ra-data-fakerest-2.1.0-2.tgz","fileCount":3,"unpackedSize":8955,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbNwbICRA9TVsSAnZWagAAIXEP/0skcXc0ST0zBNKw5UYF\nrOfMAws7Lb2qFqRXMZBiU41bhudyLrNkEJ5NS0lFQnGIGHfCrEbl7nEq7Z4H\nEVnZx/Dj+qrCDSyrvWjre8SRdf6yI8NM2WntDgTCeiqWw9s1JA51E+fQ307v\nQTlHZdciicLCThndRNXbfPr/QtXUnV0hH0/phyYN9w1v7epK7Gthkvce7Xjp\nqClzydoNZM80ZAQl7bC/cKeiPtWlgK++gIn8xnNZMzFmzyMJffJG2iH0A9gN\nf4IDvXGMtAEILlLIj2w5AAWoZQVv0W72SSSOgW/AYqFVgOiW6oYy9JaT+B/t\n2lEwigjseflww9v0higKdDc5nQjIPI+HSO6LuorjikI9fEk9QpLokQXUC+uh\nKq3VxQaA8Nd9K5tIQoozHlT9iarMcz/M3FAFaneeT5D06f1k2CkwfDFlitCm\nncrZnNOU2h5ORIx4w2WJmpHZ/X7ygAkLBb3ofFBBGgrxQw1ePJPLZQWkGYQY\nUQ57LOAcdEmYsFAL45VrNQdZyeIJzLf9Qm51jI3ZiRpkdqLRKfrR8bTqtnE5\nAUstDFnfUV0xaVvbI8VVK/U034u2ckVo8qbeerVZr8K5Pto/EQc5ZXLzUVeX\nDHLyTJ85czyZ/cXv/O25XDJU+SQSFio5cuo3DoI8Ai4wTqRZW4AkewODQOVL\nD2+H\r\n=oj4e\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCqBXUcgxDI0tU1AqmeROxPHpH615H5ZlqS9dMUaaNHowIhAOVlZrjkePK9c30u+QYNKvYvU3wmyK5QnoPhv5Uy+QPp"}]},"maintainers":[{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ra-data-fakerest_2.1.0-2_1530332872797_0.8695136750561763"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-30T04:16:22.223Z","2.1.0-0":"2018-06-30T04:16:23.035Z","modified":"2022-04-04T18:48:37.151Z","2.1.0-1":"2018-06-30T04:24:11.997Z","2.1.0-2":"2018-06-30T04:27:52.941Z"},"maintainers":[{"name":"bilgorajskim","email":"bilgorajskim@gmail.com"}],"description":"JSON Server data provider for react-admin","homepage":"https://github.com/marmelab/react-admin#readme","keywords":["reactjs","react","@bilgorajskim/react-admin","rest","fakerest","local"],"repository":{"type":"git","url":"git+https://github.com/marmelab/react-admin.git"},"author":{"name":"François Zaninotto"},"bugs":{"url":"https://github.com/marmelab/react-admin/issues"},"license":"MIT","readme":"# FakeRest Data Provider For React-Admin\n\nClient-side data provider for [react-admin](https://github.com/marmelab/react-admin), the frontend framework for building admin applications on top of REST/GraphQL services.\n\nThis package takes a JSON object as input, then creates a client-side data provider around it - no backend involved. The provider issues no HTTP requests, every operation happens locally in the browser. It's ideal to run e2e tests without an API server, or to showcase an admin only with a static server.\n\nAll operations carried out in react-admin are local to the browser, and last only for the current browser session. A browser refresh erases all modifications.\n\n![react-admin demo](http://static.marmelab.com/react-admin.gif)\n\n## Installation\n\n```sh\nnpm install --save ra-data-json-fakerest\n```\n\n## Usage\n\nPass a JSON object to the provider constructor:\n\n```jsx\n// in src/App.js\nimport React from 'react';\nimport { Admin, Resource } from 'react-admin';\nimport fakeDataProvider from 'ra-data-fakerest';\n\nconst dataProvider = fakeDataProvider({\n    posts: [\n        { id: 0, title: 'Hello, world!' },\n        { id: 1, title: 'FooBar' },\n    ],\n    comments: [\n        { id: 0, post_id: 0, author: 'John Doe', body: 'Sensational!' },\n        { id: 1, post_id: 0, author: 'Jane Doe', body: 'I agree' },\n    ],\n})\n\nimport { PostList } from './posts';\n\nconst App = () => (\n    <Admin dataProvider={dataProvider}>\n        <Resource name=\"posts\" list={PostList} />\n    </Admin>\n);\n\nexport default App;\n```\n\nAdditionally, you can turn on console logging of fake requests by passing `true` as second parameter of the constructor.\n\n## Input Format\n\nThe main parameter must be an object literal with one key for each resource type. Values are arrays of resources. Resources must be object literals with at least an `id` key.\n\nForeign keys are also supported: just name the field `{related_resource_name}_id` and give an existing value.\n\nHere is an example input:\n\n```json\n{\n    \"posts\": [\n        { \"id\": 0, \"title\": 'Hello, world!' },\n        { \"id\": 1, \"title\": 'FooBar' }\n    ],\n    \"comments\": [\n        { \"id\": 0, \"post_id\": 0, \"author\": 'John Doe', \"body\": 'Sensational!' },\n        { \"id\": 1, \"post_id\": 0, \"author\": 'Jane Doe', \"body\": 'I agree' }\n    ]\n}\n```\n\nYou can find a more sophisticated example in [the Posters Galore demo](https://raw.githubusercontent.com/marmelab/ng-admin-demo/master/js/data.js). \n\n## Features\n\nThis data provider uses [FakeRest](https://github.com/marmelab/FakeRest) under the hood. That means that it offers the same features:\n\n- pagination\n- sorting\n- filtering by column\n- filtering by the `q` full-text search\n- filtering numbers and dates greater or less than a value\n- embedding related resources\n\n## License\n\nThis data provider is licensed under the MIT License, and sponsored by [marmelab](http://marmelab.com).","readmeFilename":"README.md"}