{"_id":"@bobanum/vue-model","name":"@bobanum/vue-model","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@bobanum/vue-model","version":"0.0.1","description":"Vue Model system based on Laravel Models","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/bobanum/vue-model.git"},"keywords":["Vue","Laravel","Model","REST"],"author":{"name":"Martin Boudreau"},"license":"ISC","bugs":{"url":"https://github.com/bobanum/vue-model/issues"},"homepage":"https://github.com/bobanum/vue-model#readme","dependencies":{"axios":"^1.4.0"},"gitHead":"60517f359b071c27079ae9fd09624dcdb85fdcbc","_id":"@bobanum/vue-model@0.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.0","dist":{"integrity":"sha512-LyCvGx0wiKk7kEl1k2k6zQ+yMQhIlGHW0923EEPDWu2GundeQK3eGnO3D8IkZCGhikln6dZ6tnYiVhUza9Vi1Q==","shasum":"23452a5e210aa0deef556d622a156c12fe15b5dd","tarball":"https://registry.npmjs.org/@bobanum/vue-model/-/vue-model-0.0.1.tgz","fileCount":6,"unpackedSize":10902,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA1cLN5ei2WSks9GpCNhiIMjb7O5ipMcFVErB6yUlkrDAiEA7BaBeLLipv1xStsyPNgoALORdZs4a0io/NM2j0Y08Gw="}]},"_npmUser":{"name":"bobanum","email":"mboudrea@cstj.qc.ca"},"directories":{},"maintainers":[{"name":"bobanum","email":"mboudrea@cstj.qc.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/vue-model_0.0.1_1687806193815_0.9637794679428593"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-26T19:03:13.761Z","0.0.1":"2023-06-26T19:03:14.115Z","modified":"2023-06-26T19:03:14.283Z"},"maintainers":[{"name":"bobanum","email":"mboudrea@cstj.qc.ca"}],"description":"Vue Model system based on Laravel Models","homepage":"https://github.com/bobanum/vue-model#readme","keywords":["Vue","Laravel","Model","REST"],"repository":{"type":"git","url":"git+https://github.com/bobanum/vue-model.git"},"author":{"name":"Martin Boudreau"},"bugs":{"url":"https://github.com/bobanum/vue-model/issues"},"license":"ISC","readme":"# @bobanum/vue-model\r\n\r\nVue Model system based on Laravel Models and Queries.\r\n\r\n## Installation\r\n\r\n```bash\r\nnpm install @bobanum/vue-model\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\nimport Vue from 'vue'\r\nimport {Model} from '@bobanum/vue-model'\r\nexport default class Task extends Model {\r\n  static get url () {\r\n\treturn '/api/model'\r\n  }\r\n  static get fields () {\r\n\treturn {\r\n\t  id: {\r\n\t\ttype: Number,\r\n\t\tdefault: null\r\n\t  },\r\n\t  name: {\r\n\t\ttype: String,\r\n\t\tdefault: null\r\n\t  }\r\n\t}\r\n  }\r\n}\r\n```\r\n\r\n## API call examples\r\n\r\n| Method      | Verb | URL       | Description   |\r\n| ----------- | ---- | --------- | ------------- |\r\n| `Model.all()` | GET  | `/api/task` | gets all rows |\r\n\r\n\r\n> To be continued","readmeFilename":"README.md"}