registration api (#303)

This commit is contained in:
Athou
2013-06-18 12:31:09 +02:00
parent 2515bf9ec7
commit e90425778f
6 changed files with 67 additions and 12 deletions

View File

@@ -6,14 +6,22 @@ import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import com.wordnik.swagger.annotations.ApiProperty;
@SuppressWarnings("serial")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class RegistrationRequest implements Serializable {
@ApiProperty(value = "username, between 3 and 32 characters", required = true)
private String name;
@ApiProperty(value = "password, minimum 6 characters", required = true)
private String password;
@ApiProperty(value = "email address for password recovery", required = true)
private String email;
private boolean googleImport = true;
public String getName() {