Rapi::Blog::Controller::Remote - General-purpose controller actions
This controller provides general-purpose HTTP end-points for use by scaffolds in Rapi::Blog applications, such as posts to add comments and other functions (future) that are separate from the auto-generated interfaces provided by RapidApp. So far the only action that has been implemented is comment/add.
comment/add
Action for comment operations. Currently the only argument supported argumemnt is add.
add
This will return with a 303 redirect back to the Post public_url and the label tag html_id which is automatically generated for the comment. If the scaffold renders the html_id with each comment as the element id this will result in the page being scrolled to the just added comment.
public_url
html_id
Expects the following POST params:
POST
The id of the Post being commented on. Either post_id or parent_id must be supplied.
post_id
parent_id
The id of another Comment that this comment is a reply to. If parent_id is supplied post_id should not.
The body text of the comment
Not yet implemented.
Rapi::Blog
Catalyst::Controller
Henry Van Styn <vanstyn@cpan.org>
This software is copyright (c) 2017 by IntelliTree Solutions llc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Rapi::Blog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rapi::Blog
CPAN shell
perl -MCPAN -e shell install Rapi::Blog
For more information on module installation, please visit the detailed CPAN module installation guide.