Skip to content

Commit

Permalink
Restore UserService media type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
barreiro authored and lampajr committed Nov 5, 2024
1 parent 4317a2b commit 7bb8f51
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,15 @@ 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();

@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);
Expand Down Expand Up @@ -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)))
Expand All @@ -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)))
Expand Down

0 comments on commit 7bb8f51

Please sign in to comment.