diff options
author | franck cuny <franck@lumberjaph.net> | 2010-10-25 18:21:40 +0200 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-10-25 18:21:40 +0200 |
commit | 0e754169a099cd007d4a5abd72eae2832c34bc43 (patch) | |
tree | bedb00a1bb02d5a4bce4300aa3098327aa8b22e2 /t/spore-method/payload.t | |
parent | api spec can be modularized: (diff) | |
download | net-http-spore-0e754169a099cd007d4a5abd72eae2832c34bc43.tar.gz |
add payload and form-data to the method object
Diffstat (limited to 't/spore-method/payload.t')
-rw-r--r-- | t/spore-method/payload.t | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/t/spore-method/payload.t b/t/spore-method/payload.t new file mode 100644 index 0000000..07691dc --- /dev/null +++ b/t/spore-method/payload.t @@ -0,0 +1,17 @@ +use strict; +use warnings; +use Test::More; + +use Net::HTTP::Spore; + +my $api_with_payload = { + base_url => 'foo', + methods => { + create_user => { + method => 'POST', + path => '/user', + payload_required => 1, + } + } +}; + |