This module is really helpful to retrive the all elements for specific webform using REST, also it's useful to submit the entries in webform.

Along with above functionalites, can we retrive the webform filled data for specific form and Group listing of webforms, so that API for these functionalities can generate the well organized API.

Comments

paurnimap created an issue. See original summary.

paurnimap’s picture

Title: Retrive webform data via REST » Retrieve webform data via REST
imclean’s picture

Viewing webform submissions via REST is being discussed here: #2865549: Error accessing webform submissions via Drupal 8 REST API

Listing webforms is a bit trickier. If Views supported config entities that would be the way to go. Try the Webform issue queue.

imclean’s picture

Category: Support request » Feature request

Being able to retrieve webform submission data would be very useful.

imclean’s picture

You can also use REST Export view display with Webform Views to list webform submission data.

imclean’s picture

paurnimap’s picture

I have used a Webform Views module to get the listing of specific forms in REST Export and it is working really fine for me, but when it comes to individual entry then I found it most difficult.

In REST EXPORT Views for content type we can easily create a contexual filter with ID, and it gives the detail page for individual entries.

If the same mechanism works for webform, then we can add the contextual filter for SID and it will solve the lot of problems.

imclean’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
imclean’s picture

I probably won't be adding views support directly to this module, that's best done in the Webform module.

I'll look into being able to retrieve a submission via REST. e.g.

GET /webform_rest/{webform_id}/submission/{sid}

  • imclean committed 5331372 on 8.x-2.x
    Issue #2908727 by imclean: Retrieve webform data via REST
    
imclean’s picture

Status: Active » Fixed

This is now possible with version 2.x.

  • imclean committed 5cc7c50 on 8.x-2.x
    Issue #2908727 by imclean: Retrieve webform data via REST
    
imclean’s picture

Currently it retrieves submission data only, returned under "data" in the response. I'd like to add the base fields to this, such as uuid, webform_id, remote address etc.

imclean’s picture

Entity fields are now also returned. See project page or README.txt for details.

paurnimap’s picture

Thanks a lot.

GET /webform_rest/{webform_id}/submission/{sid}

It's working..

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.