Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created May 12, 2018 04:48
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 chathurangat/6806b3cfb65c11b87eca4264e8f09c64 to your computer and use it in GitHub Desktop.
Save chathurangat/6806b3cfb65c11b87eca4264e8f09c64 to your computer and use it in GitHub Desktop.
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