{"id":16301433,"url":"https://github.com/garu/dancer-plugin-restmodel","last_synced_at":"2025-09-05T01:46:14.310Z","repository":{"id":21724874,"uuid":"25046518","full_name":"garu/Dancer-Plugin-RESTModel","owner":"garu","description":"REST model class for Dancer apps","archived":false,"fork":false,"pushed_at":"2014-10-10T17:56:58.000Z","size":124,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-05T01:46:08.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/garu.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-10T17:49:42.000Z","updated_at":"2014-10-10T17:51:31.000Z","dependencies_parsed_at":"2022-08-17T16:25:22.740Z","dependency_job_id":null,"html_url":"https://github.com/garu/Dancer-Plugin-RESTModel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/garu/Dancer-Plugin-RESTModel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garu%2FDancer-Plugin-RESTModel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garu%2FDancer-Plugin-RESTModel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garu%2FDancer-Plugin-RESTModel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garu%2FDancer-Plugin-RESTModel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/garu","download_url":"https://codeload.github.com/garu/Dancer-Plugin-RESTModel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/garu%2FDancer-Plugin-RESTModel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273699721,"owners_count":25152285,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-10T20:54:48.307Z","updated_at":"2025-09-05T01:46:09.296Z","avatar_url":"https://github.com/garu.png","language":"Perl","readme":"Dancer-Plugin-RESTModel\n========================\n\nThis plugin lets you talk to a REST server as a separate model from within\nyour Dancer (http://perldancer.org) app. It is useful for keeping your API\ndecoupled from your app while still being able to manage it through the\nconfiguration file.\n\n\nBASIC USAGE\n-----------\n\nset the REST endpoint in your Dancer configuration file:\n\n```yaml\n    plugins:\n      RESTModel:\n        MyData:\n          server: http://localhost:5000\n          type: application/json\n          clientattrs:\n            timeout: 5\n```\n\nthen use it from any of your routes/controllers:\n\n```perl\n    use Dancer ':syntax';\n    use Dancer::Plugin::RESTModel;\n\n    get '/' =\u003e sub {\n        my $res = model('MyData')-\u003epost( 'foo/bar/baz', { meep =\u003e 'moop' } );\n\n        my $code = $res-\u003ecode; # e.g. 200 \n        my $data = $res-\u003edata;\n\n        ...\n    };\n```\n\nINSTALLATION\n------------\n\n    # from CPAN\n    $ cpan Dancer::Plugin::RESTModel\n\n    # from cpanm\n    $ cpanm Dancer::Plugin::RESTModel\n\n    # cloning the repository\n    $ git clone git://github.com/EstanteVirtual/Dancer-Plugin-RESTModel.git\n\n    # manual installation, after downloading\n    perl Makefile.PL\n    make\n    make test\n    make install\n\n\nCOPYRIGHT AND LICENCE\n---------------------\n\nCopyright (C) 2013, Breno G. de Oliveira\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaru%2Fdancer-plugin-restmodel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgaru%2Fdancer-plugin-restmodel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgaru%2Fdancer-plugin-restmodel/lists"}