Änderungen von Dokument 06 Schnittstelle ONYX Editor

Zuletzt geändert von Carina Enke am 13.02.2024

Von Version 94.1
bearbeitet von Carina Enke
am 19.12.2023
Änderungskommentar: Es gibt keinen Kommentar für diese Version
Auf Version 97.1
bearbeitet von Carina Enke
am 13.02.2024
Änderungskommentar: Es gibt keinen Kommentar für diese Version

Zusammenfassung

Details

Seiteneigenschaften
Titel
... ... @@ -1,1 +1,1 @@
1 -Schnittstelle ONYX Editor
1 +06 Schnittstelle ONYX Editor
Inhalt
... ... @@ -1,24 +2,13 @@
1 -
2 2  {{layout}}
3 -{{layout-section ac:type="single"}}
4 -{{layout-cell}}
5 -\\
6 -{{/layout-cell}}
7 -{{/layout-section}}
8 -
9 9  {{layout-section ac:type="two_right_sidebar"}}
10 10  {{layout-cell}}
11 -\\
4 +
12 12  {{/layout-cell}}
13 13  
14 14  {{layout-cell}}
15 -
16 16  {{panel title="Inhalt"}}
17 -
18 -
19 -{{toc/}}
9 +{{toc depth="3" start="2"/}}
20 20  {{/panel}}
21 -
22 22  {{/layout-cell}}
23 23  {{/layout-section}}
24 24  
... ... @@ -36,7 +36,6 @@
36 36  @RestParam(name = "params") final Map<String, String> params) {}
37 37  {{/code}}
38 38  
39 -\\
40 40  
41 41  === Parameter saveResult2 ===
42 42  
... ... @@ -57,8 +57,6 @@
57 57  Generische Parameter. Diese werden aktuell ohne weitere Verarbeitung einfach nur gespeichert.
58 58  )))
59 59  
60 -\\
61 -
62 62  === returnValue saveResult2 ===
63 63  
64 64  (% class="wrapped" %)
... ... @@ -70,8 +70,6 @@
70 70  
71 71  == Ergebnisse speichern (Legacy) ==
72 72  
73 -\\
74 -
75 75  {{code title="Ergebnisse speichern (Legacy)"}}
76 76  @RestMethod(name = "saveResult")
77 77  public Boolean saveResult(
... ... @@ -79,7 +79,6 @@
79 79  @RestParam(name = "resultFile") final byte[] resultFile) {}
80 80  {{/code}}
81 81  
82 -\\
83 83  
84 84  === Parameter saveResult2 ===
85 85  
... ... @@ -104,24 +104,18 @@
104 104  True bei Erfolg, sonst false
105 105  )))
106 106  
107 -\\
108 -
109 109  == Version der Schnittstelle abfragen ==
110 110  
111 -\\
112 -
113 113  {{code title="Version abfragen"}}
114 114  @RestMethod(name = "version")
115 115  public String version() {}
116 116  {{/code}}
117 117  
118 -\\
119 119  
120 120  === Parameter version ===
121 121  
122 122  keine
123 123  
124 -\\
125 125  
126 126  === returnValue saveResult2 ===
127 127  
... ... @@ -132,8 +132,6 @@
132 132  Version der REST-Schnittstelle, aktuell immer "1.0 (ONYX-Editor-Version)"
133 133  )))
134 134  
135 -\\
136 -
137 137  == Nutzer löschen ==
138 138  
139 139  Der ONYX Editor kann an ein LMS gekoppelt werden, so dass das LMS das nutzerdatenführende System ist. Werden Nutzer im LMS gelöscht, so sollten alle zugehörigen Daten (bspw. die persönlichen Einstellungen des Nutzers) auch im ONYX Editor gelöscht werden.
... ... @@ -207,202 +207,3 @@
207 207  {{/layout-cell}}
208 208  {{/layout-section}}
209 209  {{/layout}}
210 -
211 -
212 -
213 -{{layout}}
214 -{{layout-section ac:type="two_right_sidebar"}}
215 -{{layout-cell}}
216 -\\
217 -{{/layout-cell}}
218 -
219 -{{layout-cell}}
220 -
221 -{{panel borderColor="#ddd" bgColor="#f0f0f0" borderStyle="solid" title="Content"}}
222 -
223 -
224 -{{toc/}}
225 -{{/panel}}
226 -
227 -{{/layout-cell}}
228 -{{/layout-section}}
229 -
230 -{{layout-section ac:type="single"}}
231 -{{layout-cell}}
232 -== Save results ==
233 -
234 -With the ONYX Editor, system independent tests may be published. If users perform these tests, the result will be transferred back to the ONYX Editor, which saves it. The ONYX Editor provides the following REST interfaces:
235 -
236 -{{code title="Save results"}}
237 -@RestMethod(name = "saveResult2")
238 -public Boolean saveResult(
239 -@RestParam(name = "uniqueId") final String uniqueId,
240 -@RestParam(name = "resultFile") final byte[] resultFile,
241 -@RestParam(name = "params") final Map<String, String> params) {}
242 -{{/code}}
243 -
244 -\\
245 -
246 -=== Parameter saveResult2 ===
247 -
248 -|(((
249 -uniqueId
250 -)))|(((
251 -Unique ID used by the ONYX WebPlayer and ONYX Editor when running the test.
252 -)))
253 -|(((
254 -resultFile
255 -)))|(((
256 -Result file as ZIP file (QTI-compliant result.xml, including any referenced files such as user uploads or user content if necessary)
257 -)))
258 -|(((
259 -params
260 -)))|(((
261 -Generic parameters. These are currently only stored without further processing.
262 -)))
263 -
264 -\\
265 -
266 -=== returnValue saveResult2 ===
267 -
268 -|(((
269 -boolean
270 -)))|(((
271 -True if successful, otherwise false
272 -)))
273 -
274 -== Save results (legacy) ==
275 -
276 -\\
277 -
278 -{{code title="Save results (legacy)"}}
279 -@RestMethod(name = "saveResult")
280 -public Boolean saveResult(
281 -@RestParam(name = "uniqueId") final String uniqueId,
282 -@RestParam(name = "resultFile") final byte[] resultFile) {}
283 -{{/code}}
284 -
285 -\\
286 -
287 -=== Parameter saveResult2 ===
288 -
289 -|(((
290 -uniqueId
291 -)))|(((
292 -Unique ID used by the ONYX WebPlayer and ONYX Editor when running the test.
293 -)))
294 -|(((
295 -resultFile
296 -)))|(((
297 -Result file as ZIP file (QTI-compliant result.xml, including any referenced files such as user uploads or user content if necessary)
298 -)))
299 -
300 -=== returnValue saveResult2 ===
301 -
302 -|(((
303 -boolean
304 -)))|(((
305 -True if successful, otherwise false
306 -)))
307 -
308 -\\
309 -
310 -== Query interface version ==
311 -
312 -\\
313 -
314 -{{code title="Query version"}}
315 -@RestMethod(name = "version")
316 -public String version() {}
317 -{{/code}}
318 -
319 -\\
320 -
321 -=== Parameter version ===
322 -
323 -None
324 -
325 -\\
326 -
327 -=== returnValue saveResult2 ===
328 -
329 -|(((
330 -String
331 -)))|(((
332 -REST interface version, currently always "1.0 (ONYX Editor version)"
333 -)))
334 -
335 -\\
336 -
337 -== Delete user ==
338 -
339 -The ONYX Editor can be coupled to an LMS with the LMS being the user data management system. If users are deleted from the LMS, all related data (e. g. personal user settings) should also be deleted from the ONYX Editor.
340 -
341 -{{code title="Delete user"}}
342 -@RestMethod
343 -public Map<String, String> deleteUser(
344 - @RestParam(name = "login") final String login,
345 - @RestParam(name = "password") final String password,
346 - @RestParam(name = "repo") final String repo,
347 - @RestParam(name = "property") final String property,
348 - @RestParam(name = "values") final ArrayList<String> values,
349 - @RestParam(name = "reason") final String reason,
350 - @RestParam(name = "params") final Map<String, String> params) {}
351 -{{/code}}
352 -
353 -=== Parameter deleteUser ===
354 -
355 -|(((
356 -login
357 -)))|(((
358 -User name of an ONYX Editor admin user who has the right to delete other users.
359 -)))
360 -|(((
361 -password
362 -)))|(((
363 -Password of this ONYX Editor admin user.
364 -)))
365 -|(((
366 -repo
367 -)))|(((
368 -ID of the LMS repository as it is already configured in the LMS and used for communication with the ONYX Editor.
369 -)))
370 -|(((
371 -property
372 -)))|(((
373 -Selection criterion for the users to be deleted. If "uid", filtering is done according to the globally valid user identifier (Shibboleth criterion). Otherwise, the filtering is done according to the user names used internally by the LMS in conjunction with the ONYX Editor.
374 -)))
375 -|(((
376 -values
377 -)))|(((
378 -List of values to filter by, for example, list of user names.
379 -)))
380 -|(((
381 -reason
382 -)))|(((
383 -Reason for deletion. Will be included in the deletion log.
384 -)))
385 -|(((
386 -params
387 -)))|(((
388 -Currently not used
389 -)))
390 -
391 -=== returnValue deleteUser ===
392 -
393 -Deletion result information.
394 -
395 -|(((
396 -Key
397 -)))|(((
398 -The values as specified in the _values_ parameter
399 -)))
400 -|(((
401 -Value
402 -)))|(((
403 -Deletion result (e. g _NOT FOUND_, _ERROR:xyz_, ...)
404 -)))
405 -{{/layout-cell}}
406 -{{/layout-section}}
407 -{{/layout}}
408 -