Closed (fixed)
Project:
Webform REST
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2017 at 08:00 UTC
Updated:
25 Jan 2018 at 06:49 UTC
Jump to comment: Most recent
Comments
Comment #2
paurnimap commentedComment #3
imclean commentedViewing 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.
Comment #4
imclean commentedBeing able to retrieve webform submission data would be very useful.
Comment #5
imclean commentedYou can also use REST Export view display with Webform Views to list webform submission data.
Comment #6
imclean commentedComment #7
paurnimap commentedI 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.
Comment #8
imclean commentedComment #9
imclean commentedI 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}Comment #11
imclean commentedThis is now possible with version 2.x.
Comment #13
imclean commentedCurrently 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.
Comment #14
imclean commentedEntity fields are now also returned. See project page or README.txt for details.
Comment #15
paurnimap commentedThanks a lot.
GET /webform_rest/{webform_id}/submission/{sid}It's working..