mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
more api documentation
This commit is contained in:
@@ -6,16 +6,31 @@ import javax.xml.bind.annotation.XmlAccessType;
|
||||
import javax.xml.bind.annotation.XmlAccessorType;
|
||||
import javax.xml.bind.annotation.XmlRootElement;
|
||||
|
||||
import com.wordnik.swagger.annotations.ApiClass;
|
||||
import com.wordnik.swagger.annotations.ApiProperty;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@XmlRootElement
|
||||
@XmlAccessorType(XmlAccessType.FIELD)
|
||||
@ApiClass("User information")
|
||||
public class UserModel implements Serializable {
|
||||
|
||||
@ApiProperty(value = "user id", required = true)
|
||||
private Long id;
|
||||
|
||||
@ApiProperty(value = "user name", required = true)
|
||||
private String name;
|
||||
|
||||
@ApiProperty("user email, if any")
|
||||
private String email;
|
||||
|
||||
@ApiProperty(value = "user password, never returned by the api")
|
||||
private String password;
|
||||
|
||||
@ApiProperty(value = "account status")
|
||||
private boolean enabled;
|
||||
|
||||
@ApiProperty(value = "user is admin")
|
||||
private boolean admin;
|
||||
|
||||
public Long getId() {
|
||||
|
||||
Reference in New Issue
Block a user