summary refs log tree commit diff
path: root/lib/MooseX/Net/API.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MooseX/Net/API.pm')
-rw-r--r--lib/MooseX/Net/API.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/MooseX/Net/API.pm b/lib/MooseX/Net/API.pm
index b6f0f28..2dcfc13 100644
--- a/lib/MooseX/Net/API.pm
+++ b/lib/MooseX/Net/API.pm
@@ -72,11 +72,11 @@ MooseX::Net::API - Easily create client for net API
     );
 
     # declaring a users method
-    # calling $obj->users will call http://exemple.com/api/users?country=france
+    # calling $obj->users will call http://exemple.com/api/users/france
     net_api_method users => (
         description => 'this get a list of users',
         method      => 'GET',
-        path        => '/users/',
+        path        => '/users/:country',
         params      => [qw/country/],
     );
 
@@ -155,6 +155,14 @@ The following methods are added to your class:
 
 =item B<http_request>
 
+=item B<get_content>
+
+=item B<serialize>
+
+=item B<deserialize>
+
+=item B<content_type>
+
 =back
 
 =head2 METHODS