Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public OtisRequestsController(OtisPlayerRepository repository) {

@Operation(
summary = "Add a new Otis player",
operationId = "addPlayer",
description = "This endpoint allows you to add a new Otis player to the database.",
tags = {"Player"}
)
Expand Down Expand Up @@ -66,6 +67,7 @@ public HttpResponse<OtisPlayerDTO> add(@Valid OtisPlayerDTO playerDTO) {

@Operation(
summary = "Get Otis player by ID",
operationId = "getPlayerById",
description = "This endpoint retrieves an Otis player by their UUID.",
tags = {"Player"}
)
Expand Down Expand Up @@ -97,6 +99,7 @@ public HttpResponse<OtisPlayerDTO> getById(@Valid UUID owner) {

@Operation(
summary = "Get Otis player by name",
operationId = "getPlayerByName",
description = "This endpoint retrieves an Otis player by their name.",
tags = {"Player"}
)
Expand Down Expand Up @@ -128,6 +131,7 @@ public HttpResponse<OtisPlayerDTO> getByString(@Valid String owner) {

@Operation(
summary = "Update an existing Otis player",
operationId = "updatePlayer",
description = "This endpoint allows you to update an existing Otis player in the database.",
tags = {"Player"}
)
Expand Down Expand Up @@ -160,6 +164,7 @@ public HttpResponse<OtisPlayerDTO> update(@Valid UUID owner, @Valid OtisPlayerDT

@Operation(
summary = "Delete an Otis player",
operationId = "deletePlayer",
description = "This endpoint allows you to delete an Otis player from the database.",
tags = {"Player"}
)
Expand Down Expand Up @@ -198,6 +203,7 @@ public HttpResponse<OtisPlayerDTO> delete(@Valid UUID owner) {
*/
@Operation(
summary = "Get all Otis players",
operationId = "getAllPlayers",
description = "This endpoint retrieves all Otis players from the database.",
tags = {"Player"}
)
Expand All @@ -217,7 +223,7 @@ public HttpResponse<OtisPlayerDTO> delete(@Valid UUID owner) {
schema = @Schema(implementation = String.class)
)
)
@Get(uris = {"/getAll", "/all"})
@Get(uris = {"/all"})
public HttpResponse<Iterable<OtisPlayerDTO>> getAll(Pageable pageable) {
Page<OtisPlayer> entities = this.repository.findAll(pageable);
if (entities.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public OtisSearchController(OtisPlayerRepository playerRepository) {

@Operation(
summary = "Search for a player by their ID",
operationId = "searchById",
description = "Returns the player information if found, otherwise returns 404 Not Found.",
tags = {"Player", "Search"}
)
Expand Down Expand Up @@ -68,6 +69,7 @@ public HttpResponse<OtisPlayerDTO> searchById(@Valid UUID id) {

@Operation(
summary = "Search for a player by their name",
operationId = "searchByName",
description = "Returns the player information if found, otherwise returns 404 Not Found.",
tags = {"Player", "Search"}
)
Expand Down
Loading