How to enable Webform REST
To enable you must enable Webform module , rest ui, webform REST
you must enable the below in the extended module
if you follow all the documentation in the webform REST you will surely post into the webform using postman in the webform REST module you must enable
- Enable REST resource "Webform Submit"
- Enable REST resource "Webform Elements"
- Enable REST resource "Webform Submission"
There may be 2 Webform Submission resources. The one provided by this module has the path:
/webform_rest/{webform_id}/submission/{sid}
Submit Webform
POST /webform_rest/submit
?_format=json
Example POST data:
{
"webform_id": "my_webform",
"checkboxes_field": [
"Option 3",
"Option 5"
],
"integer_field": 3,
"radio_field": "Mail",
"email": "myemail@mydomain.com.au"
}
Enable in permission in drupal enable the
Access POST on Webform Submit resource
Comments
Post a Comment