29 Jun 2022 12:20:46 UTC
- Distribution: Web-MREST-CLI
- Module version: 0.284
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (372 / 0 / 3)
- KwaliteeBus factor: 1
- % Coverage
- License: bsd
- Perl: v5.12.0
- Activity24 month
- Download (13.04KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionSMITHFARM Nathan Cutlerand 1 contributors
- Nathan Cutler
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- BASIC CLI CLIENT USAGE
- PACKAGE VARIABLES
Web::MREST::CLI - CLI components for Web::MEST-based applications
Top-level module of the Web::MREST::CLI distribution. Exports some "generalized" functions that are used internally and might also be useful for writing CLI clients in general.
Once you have run the CLI client executable (
mrest-cli) and assuming it is pointing correctly to a running MREST-compatible server, you can begin to explore the REST API by issuing the command:
If the server is running at
http://localhost:5000, the same information can by obtained by pointing a web browser to that URI.
This will produce a list of top-level resources. To view documentation on a resource called
foo, issue the following command:
post docu pod foo
The documentation should include information on which HTTP methods can be used to access the resource.
To view documentation on the
post docu pod docu/pod
Takes PARAMHASH containing possible parameters
debug_mode. Initializes CLI client and returns a status object.
distrostring should use hyphens instead of double-colons, i.e.
Given a filename (path) which might be relative or absolute, return an absolute version. If the path was relative, it will be anchored to the home directory of the user we are running as.
Initialize the LWP::UserAgent singleton object.
Return the cookie_jar associated with our user agent.
Send a request to the server, get the response, convert it from JSON, and return it to caller. Die on unexpected errors.
Module Install Instructions
To install Web::MREST::CLI, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Web::MREST::CLI
For more information on module installation, please visit the detailed CPAN module installation guide.