{"id":16836689,"url":"https://github.com/helderberto/node-rsr","last_synced_at":"2025-03-18T03:19:36.766Z","repository":{"id":91008821,"uuid":"131526006","full_name":"helderberto/node-rsr","owner":"helderberto","description":"💫 Node.JS: HTTP resource based in sequelize.","archived":false,"fork":false,"pushed_at":"2018-06-02T16:46:21.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-08T20:44:42.979Z","etag":null,"topics":["http","node-rsr","nodejs","resource","sequelize"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/helderberto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-29T20:07:30.000Z","updated_at":"2021-07-03T00:34:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"574a975b-a1d2-44e3-8411-ef67b4ce707e","html_url":"https://github.com/helderberto/node-rsr","commit_stats":null,"previous_names":["helderburato/node-rsr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helderberto%2Fnode-rsr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helderberto%2Fnode-rsr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helderberto%2Fnode-rsr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helderberto%2Fnode-rsr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helderberto","download_url":"https://codeload.github.com/helderberto/node-rsr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244147343,"owners_count":20405942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["http","node-rsr","nodejs","resource","sequelize"],"created_at":"2024-10-13T12:14:27.868Z","updated_at":"2025-03-18T03:19:36.743Z","avatar_url":"https://github.com/helderberto.png","language":"JavaScript","readme":"# 💫 RSR\n\nThis is simple Node HTTP resource.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Requirements\n\n* [Node](https://nodejs.org/en/);\n* [Sequelize](http://docs.sequelizejs.com/manual/installation/getting-started.html).\n\n## Installation\n\nYou can get it on npm.\n```\nnpm install node-rsr --save\n```\nOr if you`re not into package management, just [download a ZIP](https://github.com/helderburato/node-rsr/archive/master.zip) file.\n\n## Usage\n\n```\nstatic save(data) {\n  return Rsr.save(Model, {\n    data: data,\n    error: 'Custom error message (optional)',\n    validate: 'Custom validate message (optional)'\n  });\n}\n\nstatic update(params, data) {\n  return Rsr.update(Model, {\n    params: params,\n    data: data,\n    error: 'Custom error message (optional)',\n    validate: 'Custom validate message (optional)'\n  });\n}\n\nstatic delete(params) {\n  return Rsr.delete(Model, {\n    params: params,\n    error: 'Custom error message (optional)',\n    validate: 'Custom validate message (optional)'\n  });\n}\n\nstatic findAll(params) {\n  return Rsr.findAll(Model, {\n    params: params,\n    error: 'Custom error message (optional)'\n  });\n}\n\nstatic findOne(params) {\n  return Rsr.findOne(Model, {\n    params: params,\n    error: 'Custom error message (optional)'\n  });\n}\n```\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Changelog\n\nThis project adheres to [Semantic Versioning](https://semver.org/).\nEvery release, along with the migration instructions, is documented on the Github [Releases](https://github.com/helderburato/node-rsr/releases) page.\n\n## Author\n\n[Helder Burato](https://twitter.com/helderburato)\n\n## License\n\n[MIT License](LICENSE) © Helder Burato\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelderberto%2Fnode-rsr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelderberto%2Fnode-rsr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelderberto%2Fnode-rsr/lists"}