Group
Extension

Matches 1

Dancer-Plugin-Fake-Response ( N/NO/NOUDARD/Dancer-Plugin-Fake-Response-0.03.tar.gz, NOUDARD, 2012; MetaCPAN )
Dancer-Plugin-Fake-Response/lib/Dancer/Plugin/Fake/Response.pm ( view source; MetaCPAN )
nd return data and code configured.

For example for : GET http://localhost/rewrite_fake_route/12.json
return code : 200
return body : {"id":12,"test":"get test"}

In configuation, if you put paramete
ke id : :id
* add possibility to request data store in a file like response_file: file/get_answer.json

=head1 INIT MODULE ROUTE

Each route configured in dancer plugin configuration are declare fakly
 eq $req->{_route_pattern})
          {
            set serializer => uc($req_params{format}) || 'JSON';
            my $response = plugin_setting->{$req->method()}->{$route}->{response};
            

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.