Created
May 12, 2018 04:48
-
-
Save chathurangat/6806b3cfb65c11b87eca4264e8f09c64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.swagger.annotations.ApiModel; | |
import io.swagger.annotations.ApiModelProperty; | |
import lombok.*; | |
import javax.validation.constraints.NotNull; | |
import java.io.Serializable; | |
@NoArgsConstructor | |
@AllArgsConstructor | |
@Getter(AccessLevel.PUBLIC) | |
@Setter(AccessLevel.PUBLIC) | |
@ApiModel(value = "UserRequest") | |
public class AddUserRequest implements Serializable { | |
@NotNull(message = "Name is required") | |
@ApiModelProperty(notes = "Name of the user") | |
private String name; | |
@NotNull(message = "Username is required") | |
@ApiModelProperty(notes = "Username of the user") | |
private String username; | |
@NotNull(message = "Password is required") | |
@ApiModelProperty(notes = "Password of the user") | |
private String password; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment