NAME

Rapi::Blog::Controller::Remote - General-purpose controller actions

DESCRIPTION

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.

ACTIONS

comment

Action for comment operations. Currently the only argument supported argumemnt is 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.

Expects the following POST params:

post_id

The id of the Post being commented on. Either post_id or parent_id must be supplied.

parent_id

The id of another Comment that this comment is a reply to. If parent_id is supplied post_id should not.

body

The body text of the comment

changepw

Not yet implemented.

SEE ALSO

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

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.