2
Comment se fait avec Catalyst::Controller::REST
je continue à obtenir ce dans le dialogueComment se fait avec REST Catalyst :: Controller J'obtiens une erreur de type de contenu
[info] Could not find a serializer for an empty content-type
Et ceci au navigateur
Impossible de trouver un type de contenu pris en charge par votre client.
J'ai cette ligne dans mon forfait ..
__PACKAGE__->config(default => 'text/yaml');
J'ai aussi installé YAML::Syck
et URI::Find
per the docs
package Sampcat::Controller::Client::Holiday;
__PACKAGE__->config(default => 'text/yaml');
BEGIN { extends 'Catalyst::Controller::REST' }
sub holiday :Chained('../client') :Args :ActionClass('REST') {}
sub holiday_GET {
my ($self, $c) = @_;
$self->status_ok($c, entity => {
'foobar' => 1
});
$c->stash->{body} = "foo";
}
Vous pourriez vouloir [ajouter un problème de git] (https://github.com/perl-catalyst/Catalyst-Action-REST/issues) et ping jnap dans #catalyst. Il est plutôt actif en ce moment. – simbabque