diff --git a/CHANGELOG.md b/CHANGELOG.md index cfb07cf..9525df3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,12 @@ about writing changes to this log. ## [Unreleased] +## [2.0.1] + +- Updated module config with new list submissions endpoint + +## [2.0.0] + - Added endpoint for getting all submissions on a webform. - **Updated** permissions such that users must be given access explicitly. @@ -22,6 +28,8 @@ about writing changes to this log. - Release 1.0.0 -[Unreleased]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.1.0...HEAD +[Unreleased]: https://github.com/OS2Forms/os2forms_rest_api/compare/2.0.1...HEAD +[2.0.1]: https://github.com/OS2Forms/os2forms_rest_api/compare/2.0.0...2.0.1 +[2.0.0]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.1.0...2.0.0 [1.1.0]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.0.0...1.1.0 [1.0.0]: https://github.com/OS2Forms/os2forms_rest_api//releases/tag/1.0.0 diff --git a/config/install/rest.resource.webform_rest_form_submissions.yml b/config/install/rest.resource.webform_rest_form_submissions.yml new file mode 100644 index 0000000..7b51cfb --- /dev/null +++ b/config/install/rest.resource.webform_rest_form_submissions.yml @@ -0,0 +1,21 @@ +langcode: da +status: true +dependencies: + module: + - key_auth + - os2forms_rest_api + - serialization + - webform_rest + enforced: + module: + - os2forms_rest_api +id: webform_rest_form_submissions +plugin_id: webform_rest_form_submissions +granularity: resource +configuration: + methods: + - GET + formats: + - json + authentication: + - key_auth diff --git a/config/install/user.role.os2forms_rest_api_user.yml b/config/install/user.role.os2forms_rest_api_user.yml index 8d413bc..673f78c 100644 --- a/config/install/user.role.os2forms_rest_api_user.yml +++ b/config/install/user.role.os2forms_rest_api_user.yml @@ -4,6 +4,7 @@ dependencies: config: - rest.resource.webform_rest_elements - rest.resource.webform_rest_fields + - rest.resource.webform_rest_form_submissions - rest.resource.webform_rest_submission module: - key_auth @@ -19,5 +20,6 @@ is_admin: null permissions: - 'restful get webform_rest_elements' - 'restful get webform_rest_fields' + - 'restful get webform_rest_form_submissions' - 'restful get webform_rest_submission' - 'use key authentication' diff --git a/os2forms_rest_api.install b/os2forms_rest_api.install new file mode 100644 index 0000000..278e1d6 --- /dev/null +++ b/os2forms_rest_api.install @@ -0,0 +1,13 @@ +installDefaultConfig('module', 'os2forms_rest_api'); +}