io.swagger.v3.oas.annotations.tags.Tag Java Examples

The following examples show how to use io.swagger.v3.oas.annotations.tags.Tag. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: HelloController.java    From springdoc-openapi with Apache License 2.0 4 votes vote down vote up
@GetMapping(value = "/search", produces = { "application/xml", "application/json" })
@Tags(value = @Tag(name = "hello-ap2"))
public PersonDTO getAllPets(@NotNull String toto) {
	return null;
}
 
Example #2
Source File: TagsService.java    From lagom-openapi with Apache License 2.0 4 votes vote down vote up
@Operation(tags = {"Example Tag", "Second Tag"})
@Tag(name = "Third Tag")
@Tag(name = "Second Tag")
@Tag(name = "Fourth Tag Full", description = "desc", externalDocs = @ExternalDocumentation(description = "docs desc"))
@ApiResponse(description = "default response")
ServiceCall<NotUsed, NotUsed> test();
 
Example #3
Source File: OpenAPIBuilder.java    From springdoc-openapi with Apache License 2.0 2 votes vote down vote up
/**
 * Add tag.
 *
 * @param handlerMethods the handler methods
 * @param tag the tag
 */
public void addTag(Set<HandlerMethod> handlerMethods, io.swagger.v3.oas.models.tags.Tag tag) {
	handlerMethods.forEach(handlerMethod -> springdocTags.put(handlerMethod, tag));
}