Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
110 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
coverage: | ||
precision: 2 | ||
round: down | ||
range: "40..80" | ||
range: "30..70" | ||
status: | ||
project: | ||
default: | ||
|
41 changes: 41 additions & 0 deletions
41
...ava/ch/ethz/seb/sebserver/gui/service/remote/webservice/api/batch/GetBatchActionPage.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,41 @@ | ||
/* | ||
* Copyright (c) 2022 ETH Zürich, Educational Development and Technology (LET) | ||
* | ||
* 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.batch; | ||
|
||
import org.springframework.context.annotation.Lazy; | ||
import org.springframework.http.HttpMethod; | ||
import org.springframework.http.MediaType; | ||
import org.springframework.stereotype.Component; | ||
|
||
import com.fasterxml.jackson.core.type.TypeReference; | ||
|
||
import ch.ethz.seb.sebserver.gbl.api.API; | ||
import ch.ethz.seb.sebserver.gbl.api.EntityType; | ||
import ch.ethz.seb.sebserver.gbl.model.BatchAction; | ||
import ch.ethz.seb.sebserver.gbl.model.Page; | ||
import ch.ethz.seb.sebserver.gbl.profile.GuiProfile; | ||
import ch.ethz.seb.sebserver.gui.service.remote.webservice.api.RestCall; | ||
|
||
@Lazy | ||
@Component | ||
@GuiProfile | ||
public class GetBatchActionPage extends RestCall<Page<BatchAction>> { | ||
|
||
public GetBatchActionPage() { | ||
super(new TypeKey<>( | ||
CallType.GET_PAGE, | ||
EntityType.BATCH_ACTION, | ||
new TypeReference<Page<BatchAction>>() { | ||
}), | ||
HttpMethod.GET, | ||
MediaType.APPLICATION_FORM_URLENCODED, | ||
API.BATCH_ACTION_ENDPOINT); | ||
} | ||
|
||
} |
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