package App::Mimosa::Controller::JSON;
use Moose;
use Bio::Chado::Schema;
use File::Spec::Functions;
use Set::Scalar;
use Digest::SHA1 'sha1_hex';
use App::Mimosa::Util qw/slurp/;
use namespace::auto
json',
stash_key => 'rest',
'map' => {
# Work around an ExtJS bug that sends the wrong content-type
'text/html' => 'JSON',
}
);
sub grid_json :Path("/api/grid/json
.json") :ActionClass('REST') :Local { }
# Answer GET requests to the above Path
sub grid_json_GET {
my ( $self, $c ) = @_;
my $data = _grid_json_data($c);
# Return a 200 OK, with the dat
nce;
use Moose;
use Bio::Chado::Schema;
use File::Spec::Functions;
use App::Mimosa::Database;
use JSON::Any;
use Data::Dumper;
use namespace::autoclean;
BEGIN { extends 'Catalyst::Controller' };
sub
$mimosa_sequence_set_id, $name ) = @_;
my $bcs = $c->model('BCS');
my $return_json = ( $name =~ m/\.json$/ );
$name =~ s/\.txt$//g;
$name =~ s/\.fasta$//g;
# Mimosa resultsets
qIO;
use Moose;
use Bio::Chado::Schema;
use File::Spec::Functions;
use App::Mimosa::Database;
use JSON::Any;
use namespace::autoclean;
BEGIN { extends 'Catalyst::View::Bio::SeqIO' };
__PACKAGE__->c