swagger update
This commit is contained in:
parent
f9baed5df7
commit
82200acc06
@ -2,10 +2,18 @@ package com.plannaplan.responses.models;
|
|||||||
|
|
||||||
import com.plannaplan.entities.User;
|
import com.plannaplan.entities.User;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
|
||||||
|
@ApiModel(description = "Response shows information about logged user.", value = "TokenResponse")
|
||||||
public class TokenResponse {
|
public class TokenResponse {
|
||||||
|
@ApiModelProperty(value = "user token used to verify requests")
|
||||||
private String token;
|
private String token;
|
||||||
|
@ApiModelProperty(value = "user id in database")
|
||||||
private Long id;
|
private Long id;
|
||||||
|
@ApiModelProperty(value = "user app role")
|
||||||
private String authorityRole;
|
private String authorityRole;
|
||||||
|
@ApiModelProperty(value = "user unviersity email")
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
public TokenResponse(User user) {
|
public TokenResponse(User user) {
|
||||||
|
Loading…
Reference in New Issue
Block a user