Problem/Motivation

Currently the endpoints are generated based on function rather than entity. For consistency and ease of understanding the paths should be grouped by entity. This would also make it easier to add new operations.

Because the REST API would change this would need to be a new version to prevent breaking existing sites.

Proposed resolution

Current path:

/webform_rest/elements/webform_id

New path:

/webform_rest/webform_id/elements

Example future path for retrieving submission data:

/webform_rest/webform_id/submission/sid

Remaining tasks

  • Create version 2.x
  • Write the code

User interface changes

None.

API changes

The REST API would change. This would require changes to the front end only so automatic updating isn't possible.

Data model changes

None. No data is stored in Drupal.

Comments

imclean created an issue. See original summary.

imclean’s picture

Issue summary: View changes
imclean’s picture

I'm also open to removing /webform_rest/ in favour of something more generic or consistent with other REST endpoints.

imclean’s picture

imclean’s picture

Too many tabs open, too many fields on issue edit screen.

imclean’s picture

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

Assigned: Unassigned » imclean
Status: Active » Fixed

Initial commit was pretty straight forward.

Status: Fixed » Closed (fixed)

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