TeamsController
@RestController
@RequestMapping(value = "BASE_EQUINOX_ENDPOINT + USERS_KEY + "/{" + USER_IDENTIFIER_KEY + "}/" + TEAMS_KEY")
The TeamsController class is useful to manage all the Team operations
Author
N7ghtm4r3 - Tecknobit
See also
EquinoxController
Constructors
Link copied to clipboard
@Autowired
Constructor used to init the controller
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
linksCollectionsService helper to manage the LinksCollection database operationsLink copied to clipboard
linksService helper to manage the RefyLink database operationsLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
refyUsersService helper to manage the RefyUser database operationsLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
teamsService helper to manage the Team database operationsLink copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
@PatchMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + MEMBERS_KEY + "/{" + MEMBER_IDENTIFIER_KEY + "}" + CHANGE_MEMBER_ROLE_ENDPOINT")
Method to change the role of a member
Link copied to clipboard
@PostMapping(headers = "token")
Method to create a new team
Method to create a new item
Link copied to clipboard
@PostMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}")
Method to edit a team
Method to edit an existing item
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@GetMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + COLLECTIONS_KEY")
Method to get the list of the collections of a team
Link copied to clipboard
@GetMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + LINKS_KEY")
Method to get the list of the links of a team
Link copied to clipboard
Method to check whether the hierarchy of the members is respected in the request
Link copied to clipboard
Link copied to clipboard
Method to get whether the user is or not authorized to operate with the team requested
Link copied to clipboard
Link copied to clipboard
@GetMapping(headers = "token")
Method to get a list of teams
Link copied to clipboard
@GetMapping(headers = "token", path = ""/" + MEMBERS_KEY")
Method to get the potential members to add in a team
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@DeleteMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}/" + COLLECTIONS_KEY + "/{" + COLLECTION_IDENTIFIER_KEY + "}")
Method to remove a collection from a team
Link copied to clipboard
@DeleteMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}/" + LINKS_KEY + "/{" + LINK_IDENTIFIER_KEY + "}")
Method to remove a link from a team
Link copied to clipboard
@DeleteMapping(headers = "token", path = "/{" + TEAM_IDENTIFIER_KEY + "}/" + MEMBERS_KEY + "/{" + MEMBER_IDENTIFIER_KEY + "}")
Method to remove a member from a team
Link copied to clipboard
Link copied to clipboard
@PutMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + COLLECTIONS_KEY")
Method to share the collections with the team
Link copied to clipboard
@PutMapping(headers = "token", path = ""/{" + TEAM_IDENTIFIER_KEY + "}/" + LINKS_KEY")
Method to share the links with the team
Link copied to clipboard
Link copied to clipboard
Method to get whether the user is or not the owner of the item requested
Link copied to clipboard