Skip to content

Instantly share code, notes, and snippets.

@evrentan
Created July 11, 2021 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evrentan/109cb25aaf7d08f35546eea1a5afe6dd to your computer and use it in GitHub Desktop.
Save evrentan/109cb25aaf7d08f35546eea1a5afe6dd to your computer and use it in GitHub Desktop.
@ApiModelProperty Annotation Example
package com.tan.myswaggeruiexample.dto;
import com.tan.myswaggeruiexample.dto.shared.AbstractGenericDtoType;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
@Getter
@Setter
@ToString
@EqualsAndHashCode(callSuper = true)
public class Customer extends AbstractGenericDtoType {
@ApiModelProperty(notes = "Customer Type")
private String customerType;
@ApiModelProperty(notes = "Customer Full Name")
private String customerFullName;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment