The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Clustericious::RouteBuilder::Common - Routes common to all clustericious apps.

VERSION

version 0.9937

DESCRIPTION

This package adds routes that are common to all clustericious servers.

SUPER CLASS

none

/version

Returns the version of the service as a single element list.

/status

Returns status information about the service. This comes back as a hash that includes these key/value pairs:

app_name

The name of the application (example: "MyApp")

server_hostname

The server on which the service is running.

server_url

The URL to use for the service.

server_version

The version of the application.

/api

Returns a list of API routes for the service. This is similar to the information provided by the Mojolicious::Command::routes.

/api/:table

If you are using Module::Build::Database and Route::Planter for a database back end to your Clustericious application you can get the columns of each table using this route.

/log/:lines

Return the last several lines from the application log (number specified by :lines and defaults to 10 if not specified).

Only available if you set export_logs to true in your application's server configuration.

example ~/etc/MyApp.conf:

 ---
 export_logs: 1

SEE ALSO

Clustericious, Clustericious::RouteBuilder

AUTHOR

original author: Brian Duggan

current maintainer: Graham Ollis <plicease@cpan.org>

contributors:

Curt Tilmes

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by NASA GSFC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.