diff options
| author | Szymon Szukalski <szymon@skas.io> | 2024-07-23 21:25:54 +1000 |
|---|---|---|
| committer | Szymon Szukalski <szymon@skas.io> | 2024-07-23 21:25:54 +1000 |
| commit | 6964e0bc8578abcbdf7e49ffa36c49197df67787 (patch) | |
| tree | 0a6c9124c5f37152172029c8096a64b4f2992501 /src/main/java/com/stileeducation/markr/controller/TestResultsController.java | |
| parent | e120a6d1a9e779cdcb1d293245f55f296e77e91a (diff) | |
Enforce text/xml+marker content type for /import endpoint
Diffstat (limited to 'src/main/java/com/stileeducation/markr/controller/TestResultsController.java')
| -rw-r--r-- | src/main/java/com/stileeducation/markr/controller/TestResultsController.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/stileeducation/markr/controller/TestResultsController.java b/src/main/java/com/stileeducation/markr/controller/TestResultsController.java index f5f8a44..5667027 100644 --- a/src/main/java/com/stileeducation/markr/controller/TestResultsController.java +++ b/src/main/java/com/stileeducation/markr/controller/TestResultsController.java @@ -20,8 +20,8 @@ public class TestResultsController { this.testResultsService = testResultsService; } - // TODO - update to consume text/xml+markr, consider return value - @PostMapping(value = IMPORT_ENDPOINT, consumes = "application/xml", produces = "application/json") + // TODO consider return value + @PostMapping(value = IMPORT_ENDPOINT, consumes = "text/xml+markr", produces = "application/json") public ResponseEntity<Void> handleXmlRequest(@RequestBody MCQTestResultsDTO testResults) { testResultsService.importTestResults(testResults); return new ResponseEntity<>(HttpStatus.NO_CONTENT); |
