@@ -18,7 +18,7 @@ api users.
1818A user can access the Webform REST API if
1919
20201 . it has the “OS2Form REST API user” (` os2forms_rest_api_user ` ) role,
21- 2 . has been granted access to the formular
21+ 2 . has been granted access to the form
2222 (see [ Custom access control] ( #custom-access-control ) )
23233 . has a generated key (User > Edit > Key authentication; `/user/«user
2424 id»/key-auth`).
@@ -131,16 +131,16 @@ Response:
131131### Webform submissions
132132
133133You can filter results based on submission time by
134- adding query parameters to the url :
134+ adding query parameters to the URL :
135135
136136| Name | Value | Example |
137137| -------------| ----------------------| --------------|
138- | ` starttime ` | PHP DateTime formats | ` yesterday ` |
138+ | ` starttime ` | [ PHP Date and Time Formats ] ( https://www.php.net/manual/en/datetime. formats.php ) | ` yesterday ` |
139139| ` endtime ` | PHP DateTime formats | ` 2023-10-23 ` |
140140
141141If left out, filtering upon the left out parameter will not be done.
142142
143- The example beneath requests all submissions after October 1. 2023.
143+ This example requests all submissions after on or after October 1st, 2023:
144144
145145Request:
146146
@@ -151,13 +151,14 @@ Request:
151151Response:
152152
153153``` json
154- {"webform_id" :" some_webform_id" ,
155- "starttime" :" 2023-10-01" ,
156- "submissions" :{
157- "123" :" https:\/\/ 127.0.0.1:8000\/ da\/ webform_rest\/ some_webform_id\/ submission\/ 44b1fe1b-ee96-481e-b941-d1219d1dcb55" ,
158- "124" :" https:\/\/ 127.0.0.1:8000\/ da\/ webform_rest\/ some_webform_id\/ submission\/ 3652836d-3dab-4919-b880-e82cbbf3c24c"
154+ {
155+ "webform_id" : " some_webform_id" ,
156+ "starttime" : " 2023-10-01" ,
157+ "submissions" : {
158+ "123" : " https://127.0.0.1:8000/da/webform_rest/some_webform_id/submission/44b1fe1b-ee96-481e-b941-d1219d1dcb55" ,
159+ "124" : " https://127.0.0.1:8000/da/webform_rest/some_webform_id/submission/3652836d-3dab-4919-b880-e82cbbf3c24c"
159160 }
160- }
161+ }```
161162```
162163
163164## Custom access control
0 commit comments