summary refs log tree commit diff
path: root/t/lib/FakeAPIFail.pm
blob: 87689bc5d7ae9326ca7afed8198bb949be8bfdf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 foo => (
    description => 'this does foo',
    method      => 'GET',
    path        => '/foo/',
    required    => [qw/bar/],
);

1;