John Napiorkowski [Tue, 5 Dec 2017 15:16:43 +0000]
v1.21
John Napiorkowski [Tue, 5 Dec 2017 15:03:41 +0000]
Merge branch 'runarbu-master'
John Napiorkowski [Tue, 5 Dec 2017 15:03:30 +0000]
Merge branch 'master' of https://github.com/runarbu/Catalyst-Action-REST into runarbu-master
John Napiorkowski [Tue, 5 Dec 2017 15:02:36 +0000]
Merge branch 'lairdm-master'
Matthew Laird [Wed, 22 Nov 2017 11:43:19 +0000]
Added an optional mode for RFC 7231 compliance. The Content-Type header is used to signal the format of the request body, the Accept header is used to negotiate the content type the client wants. Unfortunately for our needs these are sometimes different, but Catalyst::Controller::REST assumes they always match.
This adds a separation between the Serializer and Deserializer when desired. As well, a separate set of mappings for the deserializer content types is allowed. Probably not the most eligant solution but hopefully doesn't break backwards compatibility for those wanting or expecting the current behaviour.
If you have ideas on a better way to do this, I'm open to suggestions on improvements. Thanks.
Runar Buvik [Tue, 3 Nov 2015 09:44:33 +0000]
New option json_options_encode to set JSON options for output
It is good to be able to set flags like pretty and indent when making json.
John Napiorkowski [Thu, 29 Oct 2015 20:35:07 +0000]
updated changes;
John Napiorkowski [Thu, 29 Oct 2015 20:17:29 +0000]
merged
John Napiorkowski [Thu, 29 Oct 2015 20:11:31 +0000]
Merge branch 'klkanet push origin master-master'
John Napiorkowski [Thu, 29 Oct 2015 20:11:25 +0000]
resolved
John Napiorkowski [Thu, 29 Oct 2015 20:09:18 +0000]
t push origin masterMerge branch 'bockscar-master'
Steve Kleiman [Sun, 10 May 2015 18:42:10 +0000]
Fix docs citing incorrect method, "serialize_bad_request"
Fix docs to correct error-handling method name: 'serialize_bad_request'
(remove leading underscore)
Kevin L. Kane [Thu, 29 Oct 2015 19:10:13 +0000]
bumping revision number and adding entry to changes prior to CPAN release
Kevin L. Kane [Thu, 29 Oct 2015 18:32:03 +0000]
making SerializeBase respect Vary: header if it has already been set
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:40:26 +0000]
v1.19
- 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!)
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:34:52 +0000]
Make LWP a test dep instead of a hard dep
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:30:06 +0000]
set repository to github to participate in new CPAN challenge
Arthur Axel 'fREW' Schmidt [Fri, 6 Feb 2015 15:27:25 +0000]
Hard dep on JSON::MaybeXS
Arthur Axel 'fREW' Schmidt [Tue, 20 Jan 2015 18:21:35 +0000]
v1.18
- Fix tests on travisci so that Catalyst proper can run on travisci
(Thanks André Walker!)
Arthur Axel 'fREW' Schmidt [Tue, 20 Jan 2015 18:20:44 +0000]
fix encoding
André Walker [Tue, 20 Jan 2015 17:56:42 +0000]
Remove coverage from Travis
André Walker [Tue, 20 Jan 2015 17:00:24 +0000]
Add my name to CONTRIBUTORS
André Walker [Tue, 20 Jan 2015 16:55:03 +0000]
Use accessor instead of low level header value in tests
The test was failing in recent Catalyst versions because it was fetching
the header value using $res->header('Content-Type') instead of
$res->content_type. The former would get the entire HTTP header, which
recent versions would append the charset, thus changing the expected
value from 'text/x-yaml' to 'text/x-yaml; charset=UTF-8'.
The ->content_type accessor parses the header, and returns (in the
example): ('text/x-yaml', 'charset=UTF-8') in list context, and simply
'text/x-yaml' in scalar context. Using this, the test doesn't have to
worry about low level details such as the charset defined, which is out
of the scope of the test.
André Walker [Tue, 20 Jan 2015 16:53:09 +0000]
Update LWP::UserAgent min version
The version was set to 2.033, which never existed, according to:
https://metacpan.org/changes/distribution/libwww-perl
While still being conservative, 5.00 is a more reasonable value. It was
released in 1996.
Arthur Axel 'fREW' Schmidt [Fri, 24 Oct 2014 00:59:10 +0000]
v1.17
- Make 3xx status codes skip serialization when there is no data to serialize
(Thanks Jesse Sheidlower!)
Arthur Axel 'fREW' Schmidt [Thu, 23 Oct 2014 02:18:55 +0000]
normalize Changes even more
Jesse Sheidlower [Wed, 22 Oct 2014 16:04:00 +0000]
Allow redirections like ::RenderView
Arthur Axel 'fREW' Schmidt [Wed, 22 Oct 2014 16:02:37 +0000]
no need for OurPkgVersion with modern dzil
Arthur Axel 'fREW' Schmidt [Fri, 12 Sep 2014 18:22:24 +0000]
v1.16
* Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.
Matt S Trout [Wed, 10 Sep 2014 15:57:32 +0000]
Switch from JSON to JSON::MaybeXS to get a better choice of JSON parsers.
Arthur Axel 'fREW' Schmidt [Fri, 12 Sep 2014 18:11:15 +0000]
fix missing v1.15
Arthur Axel 'fREW' Schmidt [Fri, 27 Dec 2013 21:32:43 +0000]
v1.14
* Stop prompting for features at install time
Arthur Axel 'fREW' Schmidt [Fri, 27 Dec 2013 21:30:47 +0000]
update changes
Arthur Axel 'fREW' Schmidt [Sat, 9 Nov 2013 00:43:00 +0000]
test on travis
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 23:23:16 +0000]
normalize Changes
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:29:09 +0000]
remove hardcoded version strings
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:28:53 +0000]
convert to dzil
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 16:27:29 +0000]
remove generated or otherwise unneeded files
John Napiorkowski [Fri, 8 Nov 2013 15:41:19 +0000]
why oh why does every class have VERSION???
Arthur Axel 'fREW' Schmidt [Fri, 8 Nov 2013 14:03:35 +0000]
Fix tests to skip if YAML::Syck is not installed
John Napiorkowski [Thu, 5 Sep 2013 15:37:26 +0000]
oh my god, its full of tiny version numbers
John Napiorkowski [Tue, 3 Sep 2013 17:14:04 +0000]
make more de/serializers optional for security reasons
more security fixes
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:24:49 +0000]
Release 1.11
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:18:52 +0000]
Fix infinite recursion in tests under Catalyst 5.90040
Instead of trying to neuter Catalyst's prohibition against multiple
calls to ->setup(), just do the different tests in different files.
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 14:10:22 +0000]
Ignore Emacs droppings
Dagfinn Ilmari Mannsåker [Sun, 16 Jun 2013 13:29:12 +0000]
Actually test both the request trait and class
Dagfinn Ilmari Mannsåker [Mon, 22 Apr 2013 13:40:18 +0000]
Version 1.10
Dagfinn Ilmari Mannsåker [Mon, 22 Apr 2013 13:33:06 +0000]
Use YAML rather than JSON in basic tests
We have a hard dependency on YAML::Syck, but JSON support is optional,
so use YAML in basic functionality test.
Dagfinn Ilmari Mannsåker [Fri, 19 Apr 2013 12:35:17 +0000]
Version 1.09
Dagfinn Ilmari Mannsåker [Fri, 19 Apr 2013 10:01:51 +0000]
Don't load Data::Serializer unnecessarily in tests
Tomas Doran [Tue, 16 Apr 2013 07:27:05 +0000]
Version 1.08
Arthur Axel 'fREW' Schmidt [Fri, 12 Apr 2013 00:58:31 +0000]
Factor Data::Serialization into a sep dist
Tomas Doran [Thu, 11 Apr 2013 19:21:21 +0000]
Version 1.07
Tomas Doran [Thu, 11 Apr 2013 19:20:36 +0000]
Changelog
Tomas Doran [Thu, 11 Apr 2013 19:18:40 +0000]
Security fix
Shea Levy [Fri, 15 Mar 2013 17:15:22 +0000]
Test-case: When view is set, don't serialize
Signed-off-by: Shea Levy <shea@shealevy.com>
Shea Levy [Fri, 15 Mar 2013 15:54:35 +0000]
Don't serialize if a view is explicitly set.
If the controller sets the view in $c->stash->{current_view} or
$c->stash->{current_view_instance}, then it is explicitly requesting a
certain kind of serialization and C::A::Serialize shouldn't override
that.
Signed-off-by: Shea Levy <shea@shealevy.com>
Tomas Doran [Tue, 11 Dec 2012 22:05:05 +0000]
Version 1.06
Dagfinn Ilmari Mannsåker [Sun, 9 Dec 2012 19:25:50 +0000]
Sort list of allowed methods. RT#81825
Tomas Doran [Mon, 2 Jul 2012 19:13:58 +0000]
Version 1.05
Wallace Reis [Mon, 2 Jul 2012 18:39:39 +0000]
Update changelog
Wallace Reis [Mon, 2 Jul 2012 18:06:46 +0000]
Remove not_implemented from the list of allowed methods
Wallace Reis [Sat, 30 Jun 2012 12:43:33 +0000]
Extend get_allowed_methods to include HEAD
Tomas Doran [Sat, 30 Jun 2012 09:26:52 +0000]
Version 1.04
Tomas Doran [Sat, 30 Jun 2012 09:25:32 +0000]
Update changes
Tomas Doran [Sat, 30 Jun 2012 09:28:00 +0000]
Fix spelling
Wallace Reis [Fri, 29 Jun 2012 11:57:36 +0000]
Bugfix _dispatch_rest_method
Code to action lookup key must be based on $rest_method instead of $req
info.
Tomas Doran [Wed, 27 Jun 2012 23:51:32 +0000]
Merge
Tomas Doran [Wed, 27 Jun 2012 23:44:28 +0000]
Version 1.03
Wallace Reis [Mon, 25 Jun 2012 22:27:11 +0000]
Update changelog
Tomas Doran [Wed, 27 Jun 2012 23:48:52 +0000]
Update README
Wallace Reis [Mon, 25 Jun 2012 22:27:11 +0000]
Update changelog
Wallace Reis [Mon, 25 Jun 2012 22:25:07 +0000]
Add me to the CONTRIB list
Wallace Reis [Mon, 25 Jun 2012 22:21:02 +0000]
Document default HEAD handler
Wallace Reis [Thu, 21 Jun 2012 20:05:54 +0000]
Expose _get_allowed_methods to the API
Then child controllers can use that to write their own _not_implemented
methods.
Wallace Reis [Mon, 11 Jun 2012 12:39:04 +0000]
Fix default OPTIONS handler
As the ->body is defined, then serialization won't happen and we don't
wrong responses as from failing tests in prev commit.
Wallace Reis [Mon, 11 Jun 2012 12:35:31 +0000]
Add failing tests for OPTIONS
Wallace Reis [Fri, 22 Jun 2012 12:14:48 +0000]
Add default HEAD handler
Signed-off-by: Wallace Reis <wreis@123people.com>
Wallace Reis [Fri, 22 Jun 2012 11:26:50 +0000]
Add failing tests for default HEAD dispatch
Wallace Reis [Fri, 22 Jun 2012 11:12:12 +0000]
Add HEAD requests support to T::Rest
Wallace Reis [Thu, 21 Jun 2012 20:13:42 +0000]
Bit of rework for _dispatch_rest_method
Tomas Doran [Tue, 5 Jun 2012 21:33:54 +0000]
Version 1.02
Tomas Doran [Tue, 5 Jun 2012 21:43:18 +0000]
Spelling
Tomas Doran [Tue, 5 Jun 2012 21:39:31 +0000]
Changelog
Wallace Reis [Fri, 1 Jun 2012 12:33:00 +0000]
Make public response building methods for errors
_unsupported_media_type and _serialize_bad_request which can be extended
from an action-role to return custom error reponse.
Tomas Doran [Tue, 5 Jun 2012 21:33:00 +0000]
Fix display of foo_GET mehods in non-root controllers
Tomas Doran [Tue, 29 May 2012 19:20:14 +0000]
Version 1.01
Tomas Doran [Tue, 29 May 2012 19:19:32 +0000]
Changelog
Wallace Reis [Tue, 29 May 2012 15:44:02 +0000]
Oops. ENV setting should be in ::XS classes
Wallace Reis [Tue, 29 May 2012 15:33:49 +0000]
Rework ::XS serializer and deserializer classes
Make ::XS ones be a bare extension over JSON classes and ensure that
JSON::XS is loaded or die.
Wallace Reis [Mon, 28 May 2012 14:58:38 +0000]
Enable UTF-8 for JSON::XS serializer
Tomas Doran [Fri, 13 Apr 2012 08:34:40 +0000]
Version 1.00
Tomas Doran [Fri, 13 Apr 2012 08:30:56 +0000]
Shoot auto_include. RT#76524
Tomas Doran [Tue, 28 Feb 2012 09:12:15 +0000]
Version 0.99
Tomas Doran [Tue, 21 Feb 2012 11:41:26 +0000]
Version 0.98
Tomas Doran [Tue, 21 Feb 2012 10:05:19 +0000]
More spelling skips
Tomas Doran [Tue, 21 Feb 2012 09:59:55 +0000]
Version 0.97
Tomas Doran [Tue, 21 Feb 2012 09:59:44 +0000]
Test fix
Tomas Doran [Mon, 30 Jan 2012 11:33:27 +0000]
Merge remote branch 'shadowcat/master'
* shadowcat/master:
Fix a typo in Changes
Tomas Doran [Mon, 30 Jan 2012 11:22:38 +0000]
Version 0.96