| 1 | use strict; | ||
| 2 | use warnings; | ||
| 3 | |||
| 4 | package Jifty::Plugin::REST; | ||
| 5 | use base qw/Jifty::Plugin/; | ||
| 6 | |||
| 7 | our $VERSION = '1.13'; | ||
| 8 | |||
| 9 | =head1 NAME | ||
| 10 | |||
| 11 | Jifty::Plugin::REST - Add REST web services to your app | ||
| 12 | |||
| 13 | =head1 DESCRIPTION | ||
| 14 | |||
| 15 | A RESTful web services API for your Jifty app. | ||
| 16 | |||
| 17 | =head1 USAGE | ||
| 18 | |||
| 19 | Add the following to your site_config.yml | ||
| 20 | |||
| 21 | framework: | ||
| 22 | Plugins: | ||
| 23 | - REST: {} | ||
| 24 | |||
| 25 | See the URL /=/help in your Jifty app for more information about | ||
| 26 | how to access the REST resources. | ||
| 27 | |||
| 28 | =head1 MISC | ||
| 29 | |||
| 30 | The REST interface calls a method named C<jifty_serialize_format> on | ||
| 31 | records and collections to downgrade them to simple data structures. By | ||
| 32 | default, this just lists the attributes specified with "column". If you want | ||
| 33 | to include calculated values in your REST interface, you can do so by | ||
| 34 | overriding C<jifty_serialize_format>. | ||
| 35 | |||
| 36 | =cut | ||
| 37 | |||
| 38 | 1; |