Lilly Lilly - 3 months ago 24
Java Question

How to add <a href> link to make an element clickable in java for Swagger

I want to make Capo Mastro a clickable link in Java for swagger in @ApiOperation annotation, but I can't get any result.

value = "This method updates an existing capo mastro."+" <a href>Capo mastro<a>"+ can be managed only by system",
response = SaveCapoMastroResponse.class

I would really appreciate if anyone could help! Thank you!

Answer Source

You can use @ExternalDocs annotation to specify a link for api as below:

@ExternalDocs(value="Capo mastro", url="link to Capo mastro")