blob: 1f58351ede8482e7a979d0eb0b45094ef9ed543e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
|