ContributionsMost RecentMost LikesSolutionsHow do I turn off swagger-ui in production Hi, I want to turn off my swagger-ui when my product is about to release. How to do it ? Thanks SolvedMay I use swagger to describe websocket? Hi Is it possible to describe Websocket server api via Swagger? Thanks Re: Question about Swagger 2.X Annotations Thanks for your response. I will show some pics to describe my question. I want my swagger ui show like below schema show all of my Course parameters example value show part of my Course parameters I use this code ,but not working. @POST @Operation(summary = "insert new course") @Consumes(MediaType.APPLICATION_JSON) public Response insert(@RequestBody(required = true, content = @Content(schema = @Schema(implementation = Course.class, example = "{'courseName': 'test','courseType': 'testtest','courseDescription': 'myDescription'}"))) Course course, @Context HttpServletRequest request, @Context HttpServletResponse response) { return null; } Is it possible make schema and example value different with annotations? Thanks Question about Swagger 2.X Annotations Hi I want to use Object(like sample below :Contractor) to get input values from the frontend. May I use the @RequestBody annotation to define which parameters will pass(not all parameters in the Object) from the frontend? @POST @Consumes(MediaType.APPLICATION_JSON) public Response insert(@RequestBody(description = "Created contractor object", required = true, content = @Content( schema = @Schema(implementation = Contractor.class)))Contractor contractor) { ... } Thanks SolvedRe: How to configure OpenAPI definitions with java-jaxrs2-openapiservlet sample This is the answer I want ! Thanks a lot! :smileyhappy: I use same sample and add "Metadata" class in my controller package to configure my OpenAPI definitions ~ How to configure OpenAPI definitions with java-jaxrs2-openapiservlet sample Hi, I tried java-jaxrs2-openapiservlet sample successfully. but I don't know how to configure OpenAPI definitions (e.g. info、servers...) with this sample Can someone show me example for OpenAPI definitions with java-jaxrs2-openapiservlet? Thanks!! Solved