summary refs log tree commit diff
path: root/t/lib/FakeAPIFail2.pm
blob: 1d1725bfe1e165ef1df77d46a718874807b4d5c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package FakeAPI;
use Moose;
use MooseX::Net::API;

net_api_declare fake_api => (
    base_url               => 'http://identi.ca/api',
    format                 => 'json',
    format_mode            => 'content-type',
    require_authentication => 0,
);

net_api_method baz => (
    description => 'this one does baztwo',
    method      => 'BAZ',
    path        => '/baz/',
    params      => [qw/foo/],
    required    => [qw/bla/],
);

sub get_foo { return 1; }

1;