API fixes (#2766)
This commit is contained in:
@@ -349,7 +349,7 @@ class Team
|
||||
* @Serializer\VirtualProperty
|
||||
* @Serializer\SerializedName("users"),
|
||||
* @Serializer\Groups({"Team_Entity"})
|
||||
* @SWG\Property(ref="#/definitions/User")
|
||||
* @SWG\Property(type="array", @SWG\Items(ref="#/definitions/User"))
|
||||
*
|
||||
* @return User[]
|
||||
*/
|
||||
|
||||
@@ -51,7 +51,7 @@ class TeamMember
|
||||
*
|
||||
* @Serializer\Expose()
|
||||
* @Serializer\Groups({"Default", "Entity", "User_Entity"})
|
||||
* @SWG\Property(ref="#/definitions/TeamEntity")
|
||||
* @SWG\Property(ref="#/definitions/Team")
|
||||
*
|
||||
* @ORM\ManyToOne(targetEntity="App\Entity\Team", inversedBy="members")
|
||||
* @ORM\JoinColumn(onDelete="CASCADE", nullable=false)
|
||||
|
||||
@@ -173,6 +173,8 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
*/
|
||||
private $preferences;
|
||||
/**
|
||||
* List of all team memberships.
|
||||
*
|
||||
* @var TeamMember[]|ArrayCollection<TeamMember>
|
||||
*
|
||||
* @Serializer\Expose()
|
||||
@@ -273,6 +275,8 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
*/
|
||||
private $passwordRequestedAt;
|
||||
/**
|
||||
* List of all role names
|
||||
*
|
||||
* @Serializer\Expose()
|
||||
* @Serializer\Groups({"User_Entity"})
|
||||
* @Serializer\Type("array<string>")
|
||||
@@ -625,10 +629,12 @@ class User implements UserInterface, EquatableInterface, \Serializable
|
||||
}
|
||||
|
||||
/**
|
||||
* List of all teams, this user is part of
|
||||
*
|
||||
* @Serializer\VirtualProperty
|
||||
* @Serializer\SerializedName("teams"),
|
||||
* @Serializer\Groups({"User_Entity"})
|
||||
* @SWG\Property(ref="#/definitions/TeamEntity")
|
||||
* @SWG\Property(type="array", @SWG\Items(ref="#/definitions/Team"))
|
||||
*
|
||||
* @return Team[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user