-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from OS2Forms/feature/FORMS-984-add-config
FORMS-984: Added missing configuration for new endpoint
- Loading branch information
Showing
4 changed files
with
45 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
config/install/rest.resource.webform_rest_form_submissions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
/** | ||
* @file | ||
* Install, update and uninstall functions for the OS2Forms REST API module. | ||
*/ | ||
|
||
/** | ||
* Install module config. | ||
*/ | ||
function os2forms_rest_api_update_9001(): void { | ||
\Drupal::service('config.installer')->installDefaultConfig('module', 'os2forms_rest_api'); | ||
} |