Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore UserService media type annotations #2158

Merged
merged 1 commit into from
Nov 5, 2024
Merged
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 @@ -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