From ec48e1ecc95c17e792b4f576c585275d4e871e4d Mon Sep 17 00:00:00 2001 From: franck cuny Date: Thu, 24 Jun 2010 11:06:31 +0200 Subject: add strict and alter what params_in_url does --- t/lib/TestAPI.pm | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 't/lib') 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; -- cgit 1.4.1