Skip to content

Commit 32fa7c1

Browse files
authoredOct 24, 2023
Merge pull request #6 from OS2Forms/feature/FORMS-984-add-config
FORMS-984: Added missing configuration for new endpoint
2 parents 4b5c31b + c06061f commit 32fa7c1

4 files changed

+45
-1
lines changed
 

‎CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ about writing changes to this log.
88

99
## [Unreleased]
1010

11+
## [2.0.1]
12+
13+
- Updated module config with new list submissions endpoint
14+
15+
## [2.0.0]
16+
1117
- Added endpoint for getting all submissions on a webform.
1218
- **Updated** permissions such that users must be given access explicitly.
1319

@@ -22,6 +28,8 @@ about writing changes to this log.
2228

2329
- Release 1.0.0
2430

25-
[Unreleased]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.1.0...HEAD
31+
[Unreleased]: https://github.com/OS2Forms/os2forms_rest_api/compare/2.0.1...HEAD
32+
[2.0.1]: https://github.com/OS2Forms/os2forms_rest_api/compare/2.0.0...2.0.1
33+
[2.0.0]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.1.0...2.0.0
2634
[1.1.0]: https://github.com/OS2Forms/os2forms_rest_api/compare/1.0.0...1.1.0
2735
[1.0.0]: https://github.com/OS2Forms/os2forms_rest_api//releases/tag/1.0.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
langcode: da
2+
status: true
3+
dependencies:
4+
module:
5+
- key_auth
6+
- os2forms_rest_api
7+
- serialization
8+
- webform_rest
9+
enforced:
10+
module:
11+
- os2forms_rest_api
12+
id: webform_rest_form_submissions
13+
plugin_id: webform_rest_form_submissions
14+
granularity: resource
15+
configuration:
16+
methods:
17+
- GET
18+
formats:
19+
- json
20+
authentication:
21+
- key_auth

‎config/install/user.role.os2forms_rest_api_user.yml

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ dependencies:
44
config:
55
- rest.resource.webform_rest_elements
66
- rest.resource.webform_rest_fields
7+
- rest.resource.webform_rest_form_submissions
78
- rest.resource.webform_rest_submission
89
module:
910
- key_auth
@@ -19,5 +20,6 @@ is_admin: null
1920
permissions:
2021
- 'restful get webform_rest_elements'
2122
- 'restful get webform_rest_fields'
23+
- 'restful get webform_rest_form_submissions'
2224
- 'restful get webform_rest_submission'
2325
- 'use key authentication'

‎os2forms_rest_api.install

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/**
4+
* @file
5+
* Install, update and uninstall functions for the OS2Forms REST API module.
6+
*/
7+
8+
/**
9+
* Install module config.
10+
*/
11+
function os2forms_rest_api_update_9001(): void {
12+
\Drupal::service('config.installer')->installDefaultConfig('module', 'os2forms_rest_api');
13+
}

0 commit comments

Comments
 (0)
Please sign in to comment.