NAME

ponapi - ponapi utility

VERSION

version 0.003003

SYNOPSIS

ponapi gen ...              # Initialize a new PONAPI server environment
ponapi manual               # Opens the server manual
ponapi demo -s              # Starts a demo server
ponapi demo -q              # Runs a query against the demo server

SUBCOMMANDS

gen

This can be used to easily generate a PONAPI::Server environment.

--dir $path

(Required) Directory where the environment will be placed.

--repo $module_name

If you've already written a repository for your data then you can just specify the class name here. Required if --new_repo was not specified.

--new_repo $module_name

If you haven't written a repo yet, this will generate one with the minimal boilerplate, and write the name in the generated configuration. Required if --repo was not specified.

conf $path

(Optional) Copies an existing configuration file into the generated environment. A new configuration with default values will be created if this is not present.

psgi $path

(Optional) Copies an existing psgi file into the generated environment. A new configuration with default values will be created if this is not present.

demo

--server|-s

Launches a demo instance of PONAPI::Server.

--query|-q

Launches a query against the demo server, and shows the result.

--json|-j

JSON-only output mode (better for JSON parsing tools).

--port=$i

Specifies which port should be used, either to bind the server or to communicate with it. Defaults to 5000.

manual

Opens the PONAPI::Server manual. Same as running perldoc PONAPI::Manual.

AUTHORS

  • Mickey Nasriachi <mickey@cpan.org>

  • Stevan Little <stevan@cpan.org>

  • Brian Fraser <hugmeir@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Mickey Nasriachi, Stevan Little, Brian Fraser.

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