summaryrefslogtreecommitdiff
path: root/lib/Net/HTTP
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Net/HTTP')
-rw-r--r--lib/Net/HTTP/Spore/Role/Description.pm27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/Net/HTTP/Spore/Role/Description.pm b/lib/Net/HTTP/Spore/Role/Description.pm
new file mode 100644
index 0000000..b435643
--- /dev/null
+++ b/lib/Net/HTTP/Spore/Role/Description.pm
@@ -0,0 +1,27 @@
+package Net::HTTP::Spore::Role::Description;
+
+# ABSTRACT: attributes for API description
+
+use Moose::Role;
+use MooseX::Types::URI qw/Uri/;
+
+has api_base_url => (
+ is => 'rw',
+ isa => Uri,
+ coerce => 1,
+ required => 1,
+);
+
+has api_format => (
+ is => 'rw',
+ isa => 'ArrayRef',
+ predicate => 'has_api_format',
+);
+
+has api_authentication => (
+ is => 'rw',
+ isa => 'Bool',
+ predicate => 'has_api_authentication',
+);
+
+1;