./www/p5-Catalyst-Action-REST, Automated REST Method Dispatching

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 1.21, Package name: p5-Catalyst-Action-REST-1.21, Maintainer: pkgsrc-users

This Action handles doing automatic method dispatching for REST
requests. It takes a normal Catalyst action, and changes the dispatch
to append an underscore and method name.

For example, in the synopsis above, calling GET on "/foo" would
result in the foo_GET method being dispatched.

If a method is requested that is not implemented, this action will
return a status 405 (Method Not Found). It will populate the "Allow"
header with the list of implemented request methods. You can override
this behavior by implementing a custom 405 handler like so:

sub foo_not_implemented {
... handle not implemented methods ...

If you do not provide an _OPTIONS subroutine, we will automatically
respond with a 200 OK. The "Allow" header will be populated with
the list of implemented request methods.

It is likely that you really want to look at Catalyst::Controller::REST,
which brings this class together with automatic Serialization of
requests and responses.

Required to run:
[textproc/p5-YAML-Syck] [lang/perl5] [devel/p5-Config-General] [devel/p5-Class-Inspector] [devel/p5-Module-Pluggable] [devel/p5-Params-Validate] [devel/p5-FreezeThaw] [converters/p5-JSON] [devel/p5-MRO-Compat] [www/p5-Catalyst-Runtime] [devel/p5-Moose] [devel/p5-Data-Taxi] [devel/p5-PHP-Serialization] [devel/p5-Data-Serializer] [devel/p5-namespace-autoclean] [www/p5-URI-Find]

Required to build:

Master sites: (Expand)

SHA1: dee3ae196245db3c3200f788c4037cb8ce1f94a1
RMD160: 545906d657812fd5cea3b082d61b7aeac32520ff
Filesize: 50.117 KB

Version history: (Expand)

CVS history: (Expand)

   2017-12-06 08:15:04 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Catalyst-Action-REST: update to 1.21.

1.21      2017-12-05 10:05:25-05:00 America/New_York

(Yes, that's the whole Changelog from upstream)
   2017-06-05 16:25:36 by Ryo ONODERA | Files touched by this commit (2298)
Log message:
Recursive revbump from lang/perl5 5.26.0
   2016-06-08 21:25:20 by Thomas Klausner | Files touched by this commit (2236) | Package updated
Log message:
Bump PKGREVISION for perl-5.24.
   2015-11-27 14:24:40 by Makoto Fujiwara | Files touched by this commit (2)
Log message:
Updte 1.19 to 1.20
1.20      2015-10-29 15:28:27-05:00 America/Chicago
 - Documentation fixes.
 - Don't clobber some response headers if they are already set.
   2015-11-04 03:47:43 by Alistair G. Crooks | Files touched by this commit (758)
Log message:
Add SHA512 digests for distfiles for www category

Problems found locating distfiles:
	Package haskell-cgi: missing distfile haskell-cgi-20001206.tar.gz
	Package nginx: missing distfile array-var-nginx-module-0.04.tar.gz
	Package nginx: missing distfile encrypted-session-nginx-module-0.04.tar.gz
	Package nginx: missing distfile headers-more-nginx-module-0.261.tar.gz
	Package nginx: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package nginx-devel: missing distfile echo-nginx-module-0.58.tar.gz
	Package nginx-devel: missing distfile form-input-nginx-module-0.11.tar.gz
	Package nginx-devel: missing distfile lua-nginx-module-0.9.16.tar.gz
	Package nginx-devel: missing distfile nginx_http_push_module-0.692.tar.gz
	Package nginx-devel: missing distfile set-misc-nginx-module-0.29.tar.gz
	Package php-owncloud: missing distfile owncloud-8.2.0.tar.bz2

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-06-12 12:52:19 by Thomas Klausner | Files touched by this commit (3152)
Log message:
Recursive PKGREVISION bump for all packages mentioning 'perl',
having a PKGNAME of p5-*, or depending such a package,
for perl-5.22.0.
   2015-05-23 13:52:37 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Update 1.17 to 1.19
1.19      2015-02-06 09:40:02-06:00 America/Chicago

 - Make LWP a test dep instead of a hard dep (Fixes GH#3, thanks Alexander
   Hartmaier for the report!)
 - Hard dep on JSON::MaybeXS (Fixes RT#101854, thanks Emmanuel Seyman for the
   report and Karen Etheridge for help tracking down the cause!)

1.18      2015-01-20 12:20:46-06:00 America/Chicago
 - Fix tests on travisci so that Catalyst proper can run on travisci
   (Thanks Andrae (André) Walker!)
   2014-11-06 04:02:47 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 1.17

Upstream changes:
1.17      2014-10-23 19:58:46-05:00 America/Chicago
 - Make 3xx status codes skip serialization when there is no data to serialize
   (Thanks Jesse Sheidlower!)

1.16      2014-09-12 13:21:43-05:00 America/Chicago
 - Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.

1.15      2014-05-07 09:02:44-05:00 CST6CDT

 - Added new status_see_other method for returning a 303 redirect.
 - Added new status_moved method for returning a 301 redirect. (Matthew Keller)

1.14      2013-12-27 15:32:19 America/Chicago

 - Stop prompting for features at install time

1.13  2013-11-08 09:40:00 EST

 - Fix tests to skip if YAML::Syck is not installed (Arthur Axel fREW Schmidt)

1.12  2013-09-03 13:00:00 EST


 Removed The YAML and HTML parser from the distro.  You
 should install these if you actually use them.  They are listed as
 optional dependencies going forward.

 This is possibly a breaking change, but necessary for security and
 considered acceptable since those formats have not generally
 become preferred for web services.

 In addition, the default de/serialization mappings for HTML and YAML
 have been removed.  You can add that back by adding the following to
 you Configuration for the subclass of Catalyst::Controller::REST -

    package Foo::Controller::Bar;

    use Moose;
    use namespace::autoclean;

    BEGIN { extends 'Catalyst::Controller::REST' }
      'map' => {
        'text/html'          => 'YAML::HTML',
        'text/x-yaml'        => 'YAML',

 You should do this if you are using these de/serialization formats.