Skip to content
Snippets Groups Projects
Commit 8161e679 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

API: PUT **/lecturerquestion/{questionId} now returns the modified

question. See commit 990eb9fe.
parent a13b3233
No related merge requests found
...@@ -78,12 +78,12 @@ public class LecturerQuestionController extends AbstractController { ...@@ -78,12 +78,12 @@ public class LecturerQuestionController extends AbstractController {
@RequestMapping(value = "/{questionId}", method = RequestMethod.PUT) @RequestMapping(value = "/{questionId}", method = RequestMethod.PUT)
@ResponseBody @ResponseBody
public final void updateQuestion( public final Question updateQuestion(
@PathVariable final String questionId, @PathVariable final String questionId,
@RequestBody final Question question, @RequestBody final Question question,
final HttpServletResponse response final HttpServletResponse response
) { ) {
this.questionService.update(question); return this.questionService.update(question);
} }
@RequestMapping(value = "/{questionId}/publish", method = RequestMethod.POST) @RequestMapping(value = "/{questionId}/publish", method = RequestMethod.POST)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment