-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' of github.com:SafeExamBrowser/seb-server i…
…nto SEBSP-131
- Loading branch information
Showing
15 changed files
with
207 additions
and
82 deletions.
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
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
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
39 changes: 39 additions & 0 deletions
39
...n/java/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/session/ToggleTestRun.java
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,39 @@ | ||
/* | ||
* Copyright (c) 2019 ETH Zürich, IT Services | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
package ch.ethz.seb.sebserver.gui.service.remote.webservice.api.session; | ||
|
||
import ch.ethz.seb.sebserver.gbl.api.API; | ||
import ch.ethz.seb.sebserver.gbl.api.EntityType; | ||
import ch.ethz.seb.sebserver.gbl.model.exam.Exam; | ||
import ch.ethz.seb.sebserver.gbl.profile.GuiProfile; | ||
import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.RestCall; | ||
import com.fasterxml.jackson.core.type.TypeReference; | ||
import org.springframework.context.annotation.Lazy; | ||
import org.springframework.http.HttpMethod; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Lazy | ||
@Component | ||
@GuiProfile | ||
public class ToggleTestRun extends RestCall<Exam> { | ||
|
||
public ToggleTestRun() { | ||
super(new TypeKey<>( | ||
CallType.GET_SINGLE, | ||
EntityType.EXAM, | ||
new TypeReference<Exam>() { | ||
}), | ||
HttpMethod.POST, | ||
MediaType.APPLICATION_FORM_URLENCODED, | ||
API.EXAM_MONITORING_ENDPOINT | ||
+ API.EXAM_MONITORING_TEST_RUN_ENDPOINT | ||
+ API.MODEL_ID_VAR_PATH_SEGMENT); | ||
} | ||
} |
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
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
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
Oops, something went wrong.