{"id":19874473,"url":"https://github.com/strongloop/loopback-connector-jsonrpc","last_synced_at":"2025-05-02T10:31:18.010Z","repository":{"id":9712422,"uuid":"11666228","full_name":"strongloop/loopback-connector-jsonrpc","owner":"strongloop","description":"Loopback Connector for JSONRPC","archived":false,"fork":false,"pushed_at":"2021-02-10T18:35:09.000Z","size":54,"stargazers_count":13,"open_issues_count":0,"forks_count":6,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-10-31T20:17:01.281Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/strongloop.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null}},"created_at":"2013-07-25T17:07:36.000Z","updated_at":"2022-03-03T01:02:15.000Z","dependencies_parsed_at":"2022-09-16T01:36:01.031Z","dependency_job_id":null,"html_url":"https://github.com/strongloop/loopback-connector-jsonrpc","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-connector-jsonrpc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-connector-jsonrpc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-connector-jsonrpc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/strongloop%2Floopback-connector-jsonrpc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/strongloop","download_url":"https://codeload.github.com/strongloop/loopback-connector-jsonrpc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224307040,"owners_count":17289737,"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":[],"created_at":"2024-11-12T16:23:30.108Z","updated_at":"2024-11-12T16:23:31.288Z","avatar_url":"https://github.com/strongloop.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoopBack JSON-RPC Connector\n\nThe LoopBack JSON-RPC Connector allows you to call [JSON-RPC](http://www.jsonrpc.org) services from LoopBack models. It\nuses [jayson](https://github.com/tedeh/jayson) as the client library.\n\n## Usage\n\n\n```js\n\n    var ds = loopback.createDataSource({\n        connector: require(\"loopback-connector-jsonrpc\"),\n        debug: false,\n        baseURL: 'http://localhost:3000',\n        operations: ['add', 'subtract']});\n\n    var model = ds.createModel('dummy');\n\n    model.add(1, 2, function(err, data) {\n        console.log(err, data);\n    });\n```\n\nOptions to configure the connector:\n\n* url: Base URL to the json-rpc server\n* operations: An array of operation names\n\nYou can also configure the baseURL as follows.\n\n    {\n        host: 'localhost',\n        port: 3000\n    }\n\nOther properties will be passed to `jayson`.\n\n* reviver: Function to use as a JSON reviver\n* replacer: Function to use as a JSON replacer\n* generator: Function to generate request ids with. If omitted, Jayson will just generate a \"random\" number that is RFC4122\ncompliant and looks similar to this: 3d4be346-b5bb-4e28-bc4a-0b721d4f9ef9\n* version: Can be either 1 or 2 depending on which specification should be followed in communicating with the server.\nDefaults to 2 for JSON-RPC 2.0\n* encoding: String that determines the encoding to use and defaults to utf8\n\n\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Floopback-connector-jsonrpc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstrongloop%2Floopback-connector-jsonrpc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstrongloop%2Floopback-connector-jsonrpc/lists"}