Group
Extension

Matches 1

DBIx-Class-Sims-REST ( R/RK/RKINYON/DBIx-Class-Sims-REST-0.000012.tar.gz, RKINYON, 2015; MetaCPAN )
DBIx-Class-Sims-REST/lib/DBIx/Class/Sims/REST.pm ( view source; MetaCPAN )
r_transport {
  my $class = shift;
  my ($sims) = @_;
  # Convert objects into columns/values for JSON encoding.
  my %flattened;
  while ( my ($k, $v) = each %{$sims} ) {
    $flattened{$k} = [ map {
or_transport($sims);
  }

  return $rv // { error => 'No actions taken' };
}

use JSON::XS qw( encode_json decode_json );
use Plack::Request;
use Web::Simple; # Needed for the prototypes

sub dispatch
v);
      my $request = decode_json($r->content);

      my $rv = $class->do_sims( $request );

      [ 200, [ 'Content-type', 'application/json' ],
        [ encode_json($rv) ],
      ]
    },
  }
}

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.