Lilly Lilly - 10 months ago 70
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")
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download