From 7bb8f51791139edeaf4b8fcf6e376d69955985f6 Mon Sep 17 00:00:00 2001 From: barreiro Date: Tue, 5 Nov 2024 02:25:36 +0000 Subject: [PATCH] Restore UserService media type annotations --- .../io/hyperfoil/tools/horreum/api/services/UserService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/services/UserService.java b/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/services/UserService.java index bc7e4b243..171afbcf0 100644 --- a/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/services/UserService.java +++ b/horreum-api/src/main/java/io/hyperfoil/tools/horreum/api/services/UserService.java @@ -88,6 +88,7 @@ public interface UserService { @GET @Path("defaultTeam") @Blocking + @Produces(TEXT_PLAIN) @Operation(description = "Get the default team of the current user.") @APIResponse(responseCode = "200", content = @Content(mediaType = TEXT_PLAIN, schema = @Schema(type = STRING))) String defaultTeam(); @@ -95,6 +96,7 @@ public interface UserService { @POST @Path("defaultTeam") @Blocking + @Consumes(TEXT_PLAIN) @Operation(description = "Set the default team of the current user.") @RequestBody(name = "team", required = true, content = @Content(mediaType = TEXT_PLAIN, schema = @Schema(type = STRING))) void setDefaultTeam(String team); @@ -153,6 +155,7 @@ public interface UserService { @POST @Path("/apikey") @Blocking + @Produces(TEXT_PLAIN) @Operation(description = "Create a new API key.") @RequestBody(name = "request", required = true, content = @Content(schema = @Schema(type = OBJECT, implementation = ApiKeyRequest.class))) @APIResponse(responseCode = "200", content = @Content(mediaType = TEXT_PLAIN, schema = @Schema(type = STRING))) @@ -168,6 +171,7 @@ public interface UserService { @PUT @Path("/apikey/{id}/rename") @Blocking + @Consumes(TEXT_PLAIN) @Operation(description = "Rename API key.") @Parameter(name = "id", in = PATH, schema = @Schema(type = INTEGER), description = "id of the key to be renamed") @RequestBody(name = "newName", content = @Content(mediaType = TEXT_PLAIN, schema = @Schema(type = STRING)))