Download the PHP package writecrow/rest_feedback_endpoint without Composer
On this page you can find all versions of the php package writecrow/rest_feedback_endpoint. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download writecrow/rest_feedback_endpoint
More information about writecrow/rest_feedback_endpoint
Files in writecrow/rest_feedback_endpoint
Package rest_feedback_endpoint
Short Description REST endpoint for receiving a POST request
License GPL-2.0+
Homepage https://github.com/writecrow/rest_feedback_endpoint
Informations about the package rest_feedback_endpoint
Feedback Endpoint
This module provides a REST resource endpoint for receiving a POST request and sending an email with the content provided. The example in this module demonstrates feedback form content, but the SubmitIssue
endpoint can serve as a model for other types of endpoints.
Recommended setup
- Use the
simple_oauth
module - Enable Drupal core's
rest_ui
module. - Go to
/admin/config/services/rest
and enable the "Submit an issue" endpoint:- Granularity: Resource
- Method: POST
- Accepted request formats: json, xml
- Authentication providers: oauth2
- Set permission for which role(s) may access the endpoint at
/admin/people/permissions#module-rest
- Ensure that your endpoint can be reached by configuring your
services.yml
file:
If replicating the original demonstration SubmitIssue
, pay close attention to the annotation, which defines the
route, and must follow an idiosyncratic format to work with POST requests (see https://www.drupal.org/forum/support/post-installation/2017-02-21/post-return-no-route-found-error-while-get-request-is):