summaryrefslogtreecommitdiff
path: root/t/lib/TestAPI.pm
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2010-06-24 11:06:31 +0200
committerfranck cuny <franck@lumberjaph.net>2010-06-24 11:06:31 +0200
commitec48e1ecc95c17e792b4f576c585275d4e871e4d (patch)
tree7d1c71bccaf62b27a9d9e478b06b6470fd96f6ca /t/lib/TestAPI.pm
parentparams can be strict or no strict (diff)
downloadnet-http-api-ec48e1ecc95c17e792b4f576c585275d4e871e4d.tar.gz
add strict and alter what params_in_url does
Diffstat (limited to 't/lib/TestAPI.pm')
-rw-r--r--t/lib/TestAPI.pm16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/lib/TestAPI.pm b/t/lib/TestAPI.pm
index a2aed55..45d3cb2 100644
--- a/t/lib/TestAPI.pm
+++ b/t/lib/TestAPI.pm
@@ -46,4 +46,20 @@ net_api_method delete_user => (
expected => [qw/204/],
);
+net_api_method unstrict_users => (
+ method => 'GET',
+ path => '/users/unstrict',
+ strict => 0,
+ params => [qw/name/],
+ required => [qw/name/],
+);
+
+net_api_method params_users => (
+ method => 'POST',
+ path => '/users/',
+ params => [qw/name/],
+ params_in_url => [qw/bod/],
+ required => [qw/bod name/],
+);
+
1;