Merge pull request '[Fix]: API Spec' (!8) from TD-34-spieler-listen-endpunkt into trunk
All checks were successful
Quality Check / Validate OAS (push) Successful in 37s
Build Application / build (push) Successful in 1m6s
Quality Check / Linting (push) Successful in 1m10s
Quality Check / Static Analysis (push) Successful in 1m16s
Quality Check / Testing (push) Successful in 1m12s
Build Application / build-docker (push) Successful in 20s
Build Application / release (push) Successful in 8s

Reviewed-on: #8
Reviewed-by: Snoweuph <snow+git@euph.email>
This commit is contained in:
SZUT-Mehdi 2025-03-05 10:18:07 +00:00 committed by Euph Forge
commit dfcd56c7b5
Signed by: Euph Forge
GPG key ID: 85A06461FB6BDBB7
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@ paths:
503:
$ref: "#/components/responses/503ServiceUnavailable"
/admin/players:
get:
post:
operationId: "GetAllPlayers"
tags:
- admin

View file

@ -13,7 +13,7 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
class GetAllPlayersTest extends IntegrationTest {
private MockHttpServletRequestBuilder createGetAllPlayersRequest(String requestBody) {
return MockMvcRequestBuilders.get(baseUri + "/admin/players")
return MockMvcRequestBuilders.post(baseUri + "/admin/players")
.contentType(MediaType.APPLICATION_JSON)
.content(requestBody);
}