Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST API endpoint to interact with legislation works and expressions #8

Closed
cristiroma opened this issue Nov 5, 2019 · 0 comments
Closed

Comments

@cristiroma
Copy link
Collaborator

Currently the support in Drupal core to create translations and revisions is limited. There is a 3-years old discussion on how to implement this in JSON APIs with no clear solution foreseen since it has implications to the Drupal core: mainly because it is difficult to handle all edge cases in a generic way. Moreover, now JSON API is part of the Drupal core and we cannot just patch the module because it may block future core (security) updates.

Therefore the solution suggested is to create our own custom REST endpoint which allows handling both multilingual an revisions according to the project needs. Later, if there's another solution provided by the Drupal core, these endpoints can either be removed or preserved as a thin layer between the external tool and core REST API. Even so, the solution provided would be lightweight since it will handle exactly our use-case and it doesn't require to be generic.

References:

longhotsummer pushed a commit that referenced this issue Jan 13, 2020
Fixed #8 Implement REST endpoint
longhotsummer pushed a commit that referenced this issue Feb 6, 2020
Fixed #8 Implement REST endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant