blib/lib/Froody.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Froody/Logger.pm ↑ Summary blib/lib/Froody/API.pm »
1 package Froody;
2  
3 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # okay, you got me. This doesn't really do anything but hold the universal
7 # VERSION for Froody so you can say "use Froody 42.1" and it'll go bang if it's
8 # not installed. Which it will, 'cos we ain't written it yet
9 6 our $VERSION = "42.034";
10  
11 =head1 NAME
12  
13 Froody - Yet another XML web API framework
14  
15 =head1 SYNOPSIS
16  
17 bash$ lwp-request 'http://127.0.0.1:4242/?method=froody.demo.localtime&time=258244200'
18 <?xml version="1.0" encoding="utf-8"?>
19 <rsp stat="ok">
20 <time now="Wed Mar 8 22:30:00 1978">
21 <day>8</day>
22 <daylight>0</daylight>
23 <dow>3</dow>
24 <doy>66</doy>
25 <hour>22</hour>
26 <minute>30</minute>
27 <month>2</month>
28 <second>0</second>
29 <year>78</year>
30 </time>
31 </rsp>
32  
33 See L<Froody::QuickStart> for a better introduction.
34  
35 =head1 DESCRIPTION
36  
37 Froody is a framework that can be used to easily create both a server and a
38 client for making remote API calls across the web.
39  
40 Froody communicates by the AJAX friendly calling convention of passing
41 parameters to methods via CGI parameters and returning XML data structures as a
42 response. The Froody framework handles all the nastyness of dealing with the
43 CGI and XML for you, so all you really have to worry about in your Perl code is
44 actually getting the job done. In particular, it lets you define a strict spec
45 for what will be returned simply by example, making new methods quick and easy
46 to write.
47  
48 =head2 What Documentation Is There?
49  
50 First, before you do anything else, you want to read L<Froody::QuickStart>.
51 This is the basic tutorial which'll get you up and running and give you
52 and idea of what Froody is all about.
53  
54 Once you've read that you probably want to read one of the following
55  
56 =over
57  
58 =item Froody::API::XML
59  
60 How to quickly write an XML specification for Froody Methods.
61  
62 =item Froody::Implementation
63  
64 What you need to know in order to implement the methods you
65 specified reading the above.
66  
67 =item Froody::DataFormats
68  
69 A quick review of the data formats used by Froody
70  
71 =item Froody::Server
72  
73 Setting up a Froody Server
74  
75 =back
76  
77 =head1 BUGS
78  
79 Please report any bugs you find via the CPAN RT system.
80 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Froody>
81  
82 =head1 AUTHOR
83  
84 Copyright Fotango 2005. All rights reserved.
85  
86 This module is free software; you can redistribute it and/or modify it under
87 the same terms as Perl itself.
88  
89 This module has been worked on by the following people:
90  
91 Stig Brautaset <stig@brautaset.org>
92 Nicholas Clark <nclark@fotango.com>
93 Mark Fowler <mark@twoshortplanks.com>
94 Chia-liang Kao <clkao@fotango.com>
95 Tom Insam <tinsam@fotango.com>
96 Norman Nunley <nnunley@fotango.com>
97  
98 You can reach the current maintainers by emailing us at C<cpan@fotango.com>,
99 but if you're reporting bugs I<please> use the RT system mentioned above so
100 we can track the issues you report.
101  
102 =head1 SEE ALSO
103  
104 The C<examples> directory that ships with this distribution.
105  
106 =cut
107  
108 # return true to keep perl happy
109 6 '"This must be Thursday," said Arthur to himself, sinking low over his beer, "I never could get the hang of Thursdays."'
« blib/lib/Froody/Logger.pm ↑ Summary blib/lib/Froody/API.pm »