Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to put comments on swagger documentation in spring boot

@ApiModelProperty(notes = "Product ID", example = "1", required = true) 
private Long id; 
@ApiModelProperty(notes = "Product name", example = "Product 1", required = false) 
private String name; 
@ApiModelProperty(notes = "Product price", example = "$100.00", required = true) 
private String price;
Source by www.baeldung.com #
 
PREVIOUS NEXT
Tagged: #put #comments #swagger #documentation #spring #boot
ADD COMMENT
Topic
Name
3+8 =