From 2d25e2fdd3232f35971e60f0daacd90fcf9be547 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Fri, 4 Dec 2009 09:52:18 +0100 Subject: add a catalyst app to tests --- t/lib/TestAPI.pm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 t/lib/TestAPI.pm (limited to 't/lib/TestAPI.pm') diff --git a/t/lib/TestAPI.pm b/t/lib/TestAPI.pm new file mode 100644 index 0000000..1f58351 --- /dev/null +++ b/t/lib/TestAPI.pm @@ -0,0 +1,19 @@ +package TestAPI; +use Moose; +use MooseX::Net::API; + +net_api_declare fake_api => ( + base_url => 'http://localhost/root', + format => 'json', + format_mode => 'content-type', + require_authentication => 0, +); + +net_api_method foo => ( + description => 'this does foo', + method => 'GET', + path => '/foo/', +); + +1; + -- cgit 1.4.1