Skip to content
Snippets Groups Projects
Commit 83006d7c authored by Moritzjenny's avatar Moritzjenny
Browse files

no-jira: remove @ApiResponses annotations

parent 1e005e34
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,6 @@ import io.swagger.v3.oas.annotations.media.ArraySchema; ...@@ -67,7 +67,6 @@ import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag; import io.swagger.v3.oas.annotations.tags.Tag;
/** /**
...@@ -335,17 +334,15 @@ public class CurriculumsWebService { ...@@ -335,17 +334,15 @@ public class CurriculumsWebService {
@GET @GET
@Path("elements") @Path("elements")
@Operation(summary = "Get the elements of all curriculums", @Operation(summary = "Get the elements of all curriculums",
description = "Get all the elements of all curriculums") description = "Get all the elements of all curriculums")
@ApiResponses(value = { @ApiResponse(responseCode = "200", description = "The elements",
@ApiResponse(responseCode = "200", description = "The elements", content = {
content = { @Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = CurriculumElementVO.class))),
@Content(mediaType = "application/json", array = @ArraySchema(schema = @Schema(implementation = CurriculumElementVO.class))), @Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = CurriculumElementVO.class)))
@Content(mediaType = "application/xml", array = @ArraySchema(schema = @Schema(implementation = CurriculumElementVO.class))) }
} )
), @ApiResponse(responseCode = "401", description = "The roles of the authenticated user are not sufficient")
@ApiResponse(responseCode = "401", description = "The roles of the authenticated user are not sufficient"), @ApiResponse(responseCode = "406", description = "application/xml, application/json")
@ApiResponse(responseCode = "406", description = "application/xml, application/json")}
)
public Response searchCurriculumElement(@QueryParam("externalId") String externalId, @QueryParam("identifier") String identifier, public Response searchCurriculumElement(@QueryParam("externalId") String externalId, @QueryParam("identifier") String identifier,
@QueryParam("key") Long key, @Context HttpServletRequest httpRequest) { @QueryParam("key") Long key, @Context HttpServletRequest httpRequest) {
Roles roles = getRoles(httpRequest); Roles roles = getRoles(httpRequest);
......
...@@ -43,7 +43,6 @@ import io.swagger.v3.oas.annotations.media.ArraySchema; ...@@ -43,7 +43,6 @@ import io.swagger.v3.oas.annotations.media.ArraySchema;
import io.swagger.v3.oas.annotations.media.Content; import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.media.Schema; import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.responses.ApiResponse; import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
/** /**
* *
...@@ -62,9 +61,8 @@ public class ThreadsWebService implements Sampler { ...@@ -62,9 +61,8 @@ public class ThreadsWebService implements Sampler {
@GET @GET
@Operation(summary = "Retrieve threads info", description = "Retrieve information about threads count and number of deamons") @Operation(summary = "Retrieve threads info", description = "Retrieve information about threads count and number of deamons")
@ApiResponses({ @ApiResponse(responseCode = "200", description = "The infos", content = {
@ApiResponse(responseCode = "200", description = "The infos", content = { @Content(mediaType = "text") })
@Content(mediaType = "text") }) })
@Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON}) @Produces({MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
public Response getThreadsXml() { public Response getThreadsXml() {
ThreadMXBean bean = ManagementFactory.getThreadMXBean(); ThreadMXBean bean = ManagementFactory.getThreadMXBean();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment